Skip to content
Heist/ feed
Back to feed
Medium

node-min-document — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-57352

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.

Products
node-min-document
Affected versions
2.19.0+~cs2.20.2-2, 2.19.2+~cs2.20.4-1
Fixed versions
Not specified
CVEs
CVE-2025-57352
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:34 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-57352

core-osv · Original source

Published 24 Sept 2025, 18:15 UTC

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.

osv:UBUNTU-CVE-2025-57352

node-min-document

Fixed versions: Not specified

node-min-document

Fixed versions: Not specified

node-min-document

Fixed versions: Not specified

node-min-document

Fixed versions: Not specified

Complete source record
{
  "id": "c724f7477a1e5659150c35cef6d90d013a6a88f79e27c381a84beda6ff8948b3",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-57352",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-57352",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2025-57352",
    "products": [
      {
        "name": {
          "value": "node-min-document",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.19.0+~cs2.20.2-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-min-document",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.19.0+~cs2.20.2-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-min-document",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.19.2+~cs2.20.4-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-min-document",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.19.0+~cs2.20.2-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.19.2+~cs2.20.4-1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-57352",
      "aliases": [
        "UBUNTU-CVE-2025-57352"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-min-document",
            "purl": "pkg:deb/ubuntu/node-min-document?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.19.0+~cs2.20.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-57352.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-min-document",
                "binary_version": "2.19.0+~cs2.20.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-min-document",
            "purl": "pkg:deb/ubuntu/node-min-document?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.19.0+~cs2.20.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-57352.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-min-document",
                "binary_version": "2.19.0+~cs2.20.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-min-document",
            "purl": "pkg:deb/ubuntu/node-min-document?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.19.2+~cs2.20.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-57352.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-min-document",
                "binary_version": "2.19.2+~cs2.20.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-min-document",
            "purl": "pkg:deb/ubuntu/node-min-document?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.19.0+~cs2.20.2-2",
            "2.19.2+~cs2.20.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-57352.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-min-document",
                "binary_version": "2.19.2+~cs2.20.4-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:08.812999135Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-57352"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-57352",
        "https://www.cve.org/CVERecord?id=CVE-2025-57352",
        "https://github.com/Raynos/min-document/issues/54",
        "https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57352"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-57352",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356794,
  "published_at": "2025-09-24T18:15:00+00:00"
}