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 September 29, 2025)

A 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.

References

  • github.com/Raynos/min-document
  • github.com/Raynos/min-document/issues/54
  • 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 up to 2.19.0

Solution

Unfortunately, there is no solution available yet.

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 Tue, 07 Oct 2025 00:18:25 +0000.