GHSA-rx8g-88g5-qh64

min-document vulnerable to prototype pollution

At a glance

Published
Updated
CVE
CVE-2025-57352
CVSS_V4
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

Description

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.

Affected packages

PackageVersions
npm · min-documentintroduced 0, fixed 2.19.1

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database