Vulnerability · Published Jul 5, 2023 · Assigned by GitHub_M
CVE-2023-36828Statamic's Antlers sanitizer cannot effectively sanitize malicious SVG
Medium 5.5
In plain English
A medium-severity cross-site scripting in cms from statamic. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Statamic is a flat-first, Laravel and Git powered content management system. Prior to version 4.10.0, the SVG tag does not sanitize malicious SVG. Therefore, an attacker can exploit this vulnerability to perform cross-site scripting attacks using SVG, even when using the `sanitize` function. Version 4.10.0 contains a patch for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | statamic/cms | 4.10.0 | GHSA-6r5g-cq4q-327g |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
References
- https://github.com/statamic/cms/security/advisories/GHSA-6r5g-cq4q-327g x_refsource_CONFIRM
- https://github.com/statamic/cms/pull/8408 x_refsource_MISC
- https://github.com/statamic/cms/commit/c714893ad92de6e5ede17b501003441af505b30d x_refsource_MISC
- https://github.com/statamic/cms/blob/f806b6b007ddcf066082eef175653c5beaa96d60/src/Http/Controllers/CP/Fieldtypes/FilesFieldtypeController.php#L15 x_refsource_MISC
- https://github.com/statamic/cms/blob/f806b6b007ddcf066082eef175653c5beaa96d60/src/Tags/Svg.php#L36-L40 x_refsource_MISC
- https://github.com/statamic/cms/releases/tag/v4.10.0 x_refsource_MISC