Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/21728?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/21728?format=api", "vulnerability_id": "VCID-mqd9-1jwh-kuaq", "summary": "mdast-util-to-hast has unsanitized class attribute\nMultiple (unprefixed) classnames could be added in markdown source by using character references.\nThis could make rendered user supplied markdown `code` elements appear like the rest of the page.\nThe following markdown:\n\n````markdown\n```js xss\n```\n````", "aliases": [ { "alias": "CVE-2025-66400" }, { "alias": "GHSA-4fh9-h7wg-q85m" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/71501?format=api", "purl": "pkg:npm/mdast-util-to-hast@13.2.1", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/mdast-util-to-hast@13.2.1" } ], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/71500?format=api", "purl": "pkg:npm/mdast-util-to-hast@13.0.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-mqd9-1jwh-kuaq" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/mdast-util-to-hast@13.0.0" } ], "references": [ { "reference_url": "https://github.com/syntax-tree/mdast-util-to-hast", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/syntax-tree/mdast-util-to-hast" }, { "reference_url": "https://github.com/syntax-tree/mdast-util-to-hast/commit/6fc783ae6abdeb798fd5a68e7f3f21411dde7403", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/syntax-tree/mdast-util-to-hast/commit/6fc783ae6abdeb798fd5a68e7f3f21411dde7403" }, { "reference_url": "https://github.com/syntax-tree/mdast-util-to-hast/commit/ab3a79570a1afbfa7efef5d4a0cd9b5caafbc5d7", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/syntax-tree/mdast-util-to-hast/commit/ab3a79570a1afbfa7efef5d4a0cd9b5caafbc5d7" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-66400", "reference_id": "CVE-2025-66400", "reference_type": "", "scores": [], "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-66400" }, { "reference_url": "https://github.com/advisories/GHSA-4fh9-h7wg-q85m", "reference_id": "GHSA-4fh9-h7wg-q85m", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-4fh9-h7wg-q85m" }, { "reference_url": "https://github.com/syntax-tree/mdast-util-to-hast/security/advisories/GHSA-4fh9-h7wg-q85m", "reference_id": "GHSA-4fh9-h7wg-q85m", "reference_type": "", "scores": [], "url": "https://github.com/syntax-tree/mdast-util-to-hast/security/advisories/GHSA-4fh9-h7wg-q85m" } ], "weaknesses": [ { "cwe_id": 20, "name": "Improper Input Validation", "description": "The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly." }, { "cwe_id": 915, "name": "Improperly Controlled Modification of Dynamically-Determined Object Attributes", "description": "The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified." }, { "cwe_id": 937, "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013." }, { "cwe_id": 1035, "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017." } ], "exploits": [], "severity_range_score": null, "exploitability": null, "weighted_severity": null, "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-mqd9-1jwh-kuaq" }