Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1mcXg4LXYzM3AtNHFjY80rtQ
Cross-site Scripting in enshrined/svg-sanitize
Impact
SVG sanitizer library before version 0.15.0
did not remove HTML elements wrapped in a CDATA section. As a result, SVG content embedded in HTML (fetched as text/html
) was susceptible to cross-site scripting. Plain SVG files (fetched as image/svg+xml
) were not affected.
Patches
This issue is fixed in 0.15.0
and higher.
Workarounds
There is currently no workaround available without upgrading.
For more information
If you have any questions or comments about this advisory:
- Open an issue in Github
- Email us at [email protected]
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mcXg4LXYzM3AtNHFjY80rtQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 3 years ago
Updated: 10 months ago
CVSS Score: 6.2
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-fqx8-v33p-4qcc, CVE-2022-23638
References:
- https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-fqx8-v33p-4qcc
- https://github.com/darylldoyle/svg-sanitizer/commit/17e12ba9c2881caa6b167d0fbea555c11207fbb0
- https://nvd.nist.gov/vuln/detail/CVE-2022-23638
- https://github.com/darylldoyle/svg-sanitizer/issues/71
- https://github.com/FriendsOfPHP/security-advisories/blob/master/enshrined/svg-sanitize/CVE-2022-23638.yaml
- https://github.com/advisories/GHSA-fqx8-v33p-4qcc
Blast Radius: 19.9
Affected Packages
packagist:enshrined/svg-sanitize
Dependent packages: 67Dependent repositories: 1,591
Downloads: 27,726,932 total
Affected Version Ranges: < 0.15.0
Fixed in: 0.15.0
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1
All unaffected versions: 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.20.0