Dagre D3 EsApplication · Tbo47

CVE-2025-57347

CRITICAL · 9.8 CVSS v3.1 Published 2025-09-24
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
A vulnerability exists in the 'dagre-d3-es' Node.js package version 7.0.9, specifically within the 'bk' module's addConflict function, which fails to properly sanitize user-supplied input during property assignment operations. This flaw allows attackers to exploit prototype pollution vulnerabilities by injecting malicious input values (e.g., "__proto__"), enabling unauthorized modification of the JavaScript Object prototype chain. Successful exploitation could lead to denial of service conditions, unexpected application behavior, or potential execution of arbitrary code in contexts where polluted properties are later accessed or executed. The issue affects versions prior to 7.0.11 and remains unpatched at the time of disclosure.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

The 'dagre-d3-es' Node.js package version 7.0.9 contains a prototype pollution vulnerability in the 'bk' module's addConflict function. The function fails to sanitize user-supplied input during property assignment operations, allowing attackers to inject malicious property names like '__proto__' to modify the JavaScript Object prototype chain.

MitigationSince the vulnerability remains unpatched at version 7.0.11, implement input validation whitelist or blacklist at the application layer to reject property names containing '__proto__', 'constructor', or 'prototype' before passing data to dagre-d3-es functions.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Dagre D3 EsApplication
Affected:= 7.0.9

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed dagre-d3-es version
    Run 'npm list dagre-d3-es' in your project directory to list the installed version, or inspect package.json dependencies
    Affected if The installed version is exactly 7.0.9
  2. Locate dagre-d3-es package files
    Find the installed dagre-d3-es package directory in node_modules and navigate to the 'bk' module folder
    Affected if The bk module directory exists in the installed package
  3. Inspect addConflict function implementation
    Open the bk module source file containing the addConflict function and review the property assignment logic
    Affected if The addConflict function directly assigns user input to object properties without sanitization
  4. Trace application usage of addConflict
    Search your codebase for calls to addConflict function from dagre-d3-es bk module, or grep for 'addConflict' references
    Affected if Your application passes any user-controlled data to the addConflict function
  5. Verify input validation for dangerous property names
    Review code that calls addConflict to check if property names containing '__proto__', 'constructor', or 'prototype' are validated or rejected before use
    Affected if No validation exists to filter dangerous property names and user input reaches addConflict

You are affected if dagre-d3-es version 7.0.9 is installed AND your application uses the bk module's addConflict function with unvalidated user input that could contain '__proto__' or similar prototype-polluting property names.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Since the vulnerability remains unpatched at version 7.0.11, implement input validation whitelist or blacklist at the application layer to reject property names containing '__proto__', 'constructor', or 'prototype' before passing data to dagre-d3-es functions.

Recommended fix High confidence

7.0.11

  1. Identify all project dependencies that reference dagre-d3-es and their current versions using npm list or yarn list
  2. Upgrade dagre-d3-es to version 7.0.11 or later by running: npm install dagre-d3-es@^7.0.11 (or yarn add dagre-d3-es@^7.0.11)
  3. Run npm audit or yarn audit to confirm the vulnerability is resolved
  4. Test the application to ensure the upgrade does not introduce regressions in graph layout functionality
Caveat Review changelog for any breaking changes between 7.0.9 and 7.0.11; major version unchanged so changes likely minimal

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Dagre D3 Es Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA3.0 h
19.0 hours of engineering $3,380
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,408.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-57347 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-57347 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data