# GHSA-H56M-22Q9-R6XC: CSS declarations can be injected into the block's wrapper

- Database: GitHub
- Severity: CVSS 5.4 (Medium)
- Published: 2026-10-27
- Modified: 2026-10-27

## Affected versions

- 10up/safe-svg (Packagist): through 2.5.1

## Description

`render_block_callback()` builds two `style` attributes by concatenating block attributes with only `esc_attr()`, so a value containing `;` adds arbitrary CSS declarations. This allows arbitrary CSS on the wrapper.

This has been resolved in Safe SVG v2.5.2 by ensuring all attributes are properly sanitized and escaped prior to output.

## References

- https://github.com/10up/safe-svg/security/advisories/GHSA-h56m-22q9-r6xc

Page: https://cve.now/GHSA-H56M-22Q9-R6XC

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
