fkie_cve-2019-25225
Vulnerability from fkie_nvd
Published
2025-09-08 10:15
Modified
2025-09-19 15:18
Severity ?
Summary
`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.
References
Impacted products
Vendor | Product | Version | |
---|---|---|---|
apostrophecms | sanitize-html | * |
{ "configurations": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*", "matchCriteriaId": "925E3440-F8B9-425C-86C2-3E3A2C1B7B27", "versionEndExcluding": "2.0.0", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "cveTags": [], "descriptions": [ { "lang": "en", "value": "`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": "CVE-2019-25225", "lastModified": "2025-09-19T15:18:42.913", "metrics": { "cvssMetricV31": [ { "cvssData": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.1, "baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1" }, "exploitabilityScore": 2.8, "impactScore": 2.7, "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "type": "Secondary" } ] }, "published": "2025-09-08T10:15:33.440", "references": [ { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Exploit", "Third Party Advisory" ], "url": "https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225" }, { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Patch" ], "url": "https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3" }, { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Issue Tracking", "Vendor Advisory" ], "url": "https://github.com/apostrophecms/sanitize-html/issues/293" }, { "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "tags": [ "Issue Tracking", "Patch" ], "url": "https://github.com/apostrophecms/sanitize-html/pull/156" } ], "sourceIdentifier": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "vulnStatus": "Analyzed", "weaknesses": [ { "description": [ { "lang": "en", "value": "CWE-79" } ], "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647", "type": "Secondary" } ] }
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…