Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. min-document
  4. ›
  5. CVE-2025-57352

CVE-2025-57352: min-document vulnerable to prototype pollution

September 24, 2025 (updated November 10, 2025)

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.

References

  • github.com/Raynos/min-document
  • github.com/Raynos/min-document/commit/fe32e8da464cef622528725f647029a8fd7d95a6
  • github.com/Raynos/min-document/issues/54
  • github.com/Raynos/min-document/pull/55
  • github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57352
  • github.com/advisories/GHSA-rx8g-88g5-qh64
  • nvd.nist.gov/vuln/detail/CVE-2025-57352

Code Behaviors & Features

Detect and mitigate CVE-2025-57352 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.19.1

Fixed versions

  • 2.19.1

Solution

Upgrade to version 2.19.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/min-document/CVE-2025-57352.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 06 Dec 2025 12:18:31 +0000.