Vulnerabilities in pkg:npm/min-document
PACKAGECVE-2025-57352 is a LOW min-document vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Min document libraries in the npm ecosystem. The issue involves min-document vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 2.19.1.
pkg:npm/min-document
Vulnerability advisories affecting package pkg:npm/min-document. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rx8g-88g5-qh64 | CVE-2025-57352 | LOW | min-document vulnerable to prototype pollution |
CVE-2025-57352 at a Glance
How to Fix CVE-2025-57352
To remediate this vulnerability, upgrade all affected Min document dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install min-document@2.19.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls min-document
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-57352, inspect your project dependencies using npm:
npm ls min-document
Analyze the terminal output to locate any version of Min document in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.19.1), your application is affected.
Note: The npm ls min-document command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Min document, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-57352 Affected Min document Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
min-document
|
npm |
< 2.19.1
|
2.19.1
|
References
Frequently Asked Questions
What is CVE-2025-57352?
Which Min document versions are affected?
What version fixes CVE-2025-57352?
Is min-document affected?
What CWE is associated with CVE-2025-57352?
How can I check npm dependencies for CVE-2025-57352?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rx8g-88g5-qh64",
"modified" : "2025-11-06T18:20:23Z",
"published" : "2025-09-24T18:30:31Z",
"aliases" : [ "CVE-2025-57352" ],
"summary" : "min-document vulnerable to prototype pollution",
"details" : "A vulnerability exists in the 'min-document' package prior to version 2.19.1, 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 is addressed in version 2.19.1.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "min-document"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.19.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.19.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57352"
}, {
"type" : "WEB",
"url" : "https://github.com/Raynos/min-document/issues/54"
}, {
"type" : "WEB",
"url" : "https://github.com/Raynos/min-document/pull/55"
}, {
"type" : "WEB",
"url" : "https://github.com/Raynos/min-document/commit/fe32e8da464cef622528725f647029a8fd7d95a6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Raynos/min-document"
}, {
"type" : "WEB",
"url" : "https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57352"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-29T13:12:07Z",
"nvd_published_at" : "2025-09-24T18:15:41Z"
}
}