{"id":"GHSA-fqx8-v33p-4qcc","summary":"Cross-site Scripting in enshrined/svg-sanitize","details":"### Impact\nSVG 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.\n\n### Patches\nThis issue is fixed in `0.15.0` and higher.\n\n### Workarounds\nThere is currently no workaround available without upgrading.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Github](https://github.com/darylldoyle/svg-sanitizer/issues)\n* Email us at [daryll@enshrined.co.uk](mailto:daryll@enshrined.co.uk)\n","aliases":["CVE-2022-23638"],"modified":"2024-02-05T10:47:31.434255Z","published":"2022-02-14T22:54:18Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-02-14T22:54:18Z","nvd_published_at":"2022-02-14T21:15:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-fqx8-v33p-4qcc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23638"},{"type":"WEB","url":"https://github.com/darylldoyle/svg-sanitizer/issues/71"},{"type":"WEB","url":"https://github.com/darylldoyle/svg-sanitizer/commit/17e12ba9c2881caa6b167d0fbea555c11207fbb0"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/enshrined/svg-sanitize/CVE-2022-23638.yaml"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fqx8-v33p-4qcc"},{"type":"PACKAGE","url":"https://github.com/darylldoyle/svg-sanitizer"}],"affected":[{"package":{"name":"enshrined/svg-sanitize","ecosystem":"Packagist","purl":"pkg:composer/enshrined/svg-sanitize"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.0"}]}],"versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","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","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.5.3.1","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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-fqx8-v33p-4qcc/GHSA-fqx8-v33p-4qcc.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}