CVE-2022-23638
MEDIUM6.2EPSS 0.18%Cross-site Scripting in enshrined/svg-sanitize
發布日:2022/2/14修改日:2024/2/16
描述
### 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 [[email protected]](mailto:[email protected])
受影響套件(1)
- Packagist/enshrined/svg-sanitizefrom 0, < 0.15.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
參考連結(7)
- ADVISORYhttps://github.com/advisories/GHSA-fqx8-v33p-4qcc
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-23638
- PATCHhttps://github.com/darylldoyle/svg-sanitizer
- WEBhttps://github.com/darylldoyle/svg-sanitizer/commit/17e12ba9c2881caa6b167d0fbea555c11207fbb0
- WEBhttps://github.com/darylldoyle/svg-sanitizer/issues/71
- WEBhttps://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-fqx8-v33p-4qcc
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/enshrined/svg-sanitize/CVE-2022-23638.yaml