ghsa-qhxp-v273-g94h
Vulnerability from github
Published
2025-09-08 12:30
Modified
2025-09-12 20:01
Severity ?
VLAI Severity ?
Summary
sanitize-html is vulnerable to XSS through incomprehensive sanitization
Details
sanitize-html
prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The sanitizeHtml()
function in index.js
does not sanitize content when using the custom transformTags
option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.
{ "affected": [ { "package": { "ecosystem": "npm", "name": "sanitize-html" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.0.0-beta" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2019-25225" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2025-09-12T20:01:43Z", "nvd_published_at": "2025-09-08T10:15:33Z", "severity": "MODERATE" }, "details": "`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The `sanitizeHtml()` function in `index.js` does not sanitize content when using the custom `transformTags` option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.", "id": "GHSA-qhxp-v273-g94h", "modified": "2025-09-12T20:01:43Z", "published": "2025-09-08T12:30:33Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-25225" }, { "type": "WEB", "url": "https://github.com/apostrophecms/sanitize-html/issues/293" }, { "type": "WEB", "url": "https://github.com/apostrophecms/sanitize-html/pull/156" }, { "type": "WEB", "url": "https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3" }, { "type": "WEB", "url": "https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225" }, { "type": "PACKAGE", "url": "https://github.com/apostrophecms/sanitize-html" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "sanitize-html is vulnerable to XSS through incomprehensive sanitization" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…