VDB
Sign up
LOW

GHSA-rx8g-88g5-qh64

min-document vulnerable to prototype pollution

Quick fix

GHSA-rx8g-88g5-qh64 — min-document: upgrade to the fixed version with the command below.

npm install min-document@2.19.1

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/min-document
Introduced in: 0Fixed in: 2.19.1
Fixnpm install min-document@2.19.1

References