ghsa-fqx8-v33p-4qcc
Vulnerability from github
Published
2022-02-14 22:54
Modified
2022-03-09 23:27
Severity ?
Summary
Cross-site Scripting in enshrined/svg-sanitize
Details
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 daryll@enshrined.co.uk
{ "affected": [ { "package": { "ecosystem": "Packagist", "name": "enshrined/svg-sanitize" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.15.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-23638" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2022-02-14T22:54:18Z", "nvd_published_at": "2022-02-14T21:15:00Z", "severity": "MODERATE" }, "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", "id": "GHSA-fqx8-v33p-4qcc", "modified": "2022-03-09T23:27:04Z", "published": "2022-02-14T22:54:18Z", "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" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "type": "CVSS_V3" } ], "summary": "Cross-site Scripting in enshrined/svg-sanitize" }
Loading...
Loading...
- 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.