—
PYSEC-2023-9
Quick fix
PYSEC-2023-9 — cairosvg: upgrade to the fixed version with the command below.
pip install --upgrade 'cairosvg>=12d31c653c0254fa9d9853f66b04ea46e7397255'Details
CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to version 2.7.0, Cairo can send requests to external hosts when processing SVG files. A malicious actor could send a specially crafted SVG file that allows them to perform a server-side request forgery or denial of service. Version 2.7.0 disables CairoSVG's ability to access other files online by default.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/cairosvg
Introduced in:
0Fixed in: 12d31c653c0254fa9d9853f66b04ea46e7397255Fix
pip install --upgrade 'cairosvg>=12d31c653c0254fa9d9853f66b04ea46e7397255'References
- https://github.com/Kozea/CairoSVG/releases/tag/2.7.0[WEB]
- https://github.com/Kozea/CairoSVG/security/advisories/GHSA-rwmf-w63j-p7gv[ADVISORY]
- https://github.com/Kozea/CairoSVG/commit/12d31c653c0254fa9d9853f66b04ea46e7397255[FIX]
- https://github.com/Kozea/CairoSVG/commit/33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53[FIX]