CVE-2025-57352
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 · uneditedA vulnerability exists in the 'min-document' package prior to version 2.19.0, stemming from improper handling of namespace operations in the removeAttributeNS method. By processing malicious input involving the __proto__ property, an attacker can manipulate the prototype chain of JavaScript objects, leading to denial of service or arbitrary code execution. This issue arises from insufficient validation of attribute namespace removal operations, allowing unintended modification of critical object prototypes. The vulnerability remains unaddressed in the latest available version.
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 confidenceThe min-document package before v2.19.0 contains a prototype pollution vulnerability in its removeAttributeNS method. By passing malicious input containing __proto__ properties, attackers can manipulate JavaScript object prototypes, leading to denial of service or potentially arbitrary code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
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
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
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 checksWork through these to decide whether this CVE applies to you.
-
Locate min-document in your projectRun `npm list min-document` or check your package.json dependencies for min-document. If using a lockfile, also run `npm ls min-document` to see the resolved version.Affected if min-document is listed as a dependency but is not found in your project dependencies.
-
Determine installed versionRun `npm list min-document` to see the exact version number installed. If using yarn, run `yarn list min-document`. If using pnpm, run `pnpm list min-document`.Affected if The version displayed is lower than 2.19.0 (for example, 2.18.0, 2.17.0, etc.).
-
Identify removeAttributeNS usage in your codeSearch your codebase for calls to removeAttributeNS method. Use grep or your IDE search: `grep -r "removeAttributeNS"` across your JavaScript/TypeScript source files.Affected if Your code calls removeAttributeNS and passes namespace values that originate from user input, API requests, or external data sources.
-
Verify namespace input sourceReview the code paths where namespace arguments are passed to removeAttributeNS. Determine if these values could be influenced by external input such as HTTP request parameters, JSON payloads, or configuration files.Affected if The namespace parameter accepts values that could be attacker-controlled without sanitization.
You are affected if min-document version is below 2.19.0 AND your code uses removeAttributeNS with user-controlled or untrusted namespace input.
Generated from the published advisory. Verify against your own configuration.
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 · scopedUpgrade min-document to version 2.19.0 or later. If upgrading is not immediately possible, implement input validation to sanitize or reject any __proto__ or constructor properties in namespace operations.
min-document version 2.19.0 or later
- 1. Identify the min-document package in your project dependencies
- 2. Run 'npm list min-document' or check your package-lock.json to confirm the currently installed version
- 3. If version is below 2.19.0, run 'npm install min-document@^2.19.0' to upgrade to the fixed version
- 4. Run your test suite to verify the upgrade does not break functionality
- 5. Rebuild and redeploy your application
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,168.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-57352 — 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-57352 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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