logo

CVE-2022-23638 enshrined/svg-sanitize

Package

Manager: composer
Name: enshrined/svg-sanitize
Vulnerable Version: >=0 <0.15.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00098 pctl0.27927

Details

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](https://github.com/darylldoyle/svg-sanitizer/issues) * Email us at [daryll@enshrined.co.uk](mailto:daryll@enshrined.co.uk)

Metadata

Created: 2022-02-14T22:54:18Z
Modified: 2022-03-09T23:27:04Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-fqx8-v33p-4qcc/GHSA-fqx8-v33p-4qcc.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-fqx8-v33p-4qcc
Finding: F008
Auto approve: 1