Advisory

GHSA-rx8g-88g5-qh64

Also known as: 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

Low Basis: The source's own band: LOW

Dates

Published
2025-09-24 18:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

min-document

npm · All systems

Affected

  • introduced 0, fixed 2.19.1 (semver)

Fixed versions

2.19.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences