CVE-2026-40853: Apache XML Graphics Batik: Cross-Site Scripting via Unencoded Font Metadata in Apache Batik SVGFont
Severity: moderate
XSS in Apache Batik SVGFont via unencoded font metadata
Apache XML Graphics Batik does not encode font metadata in SVGFont, allowing cross-site scripting (CWE-79). An attacker who supplies a crafted SVG with malicious font metadata can run script in the browser of a user who opens or renders that content. All deployments of Apache Batik through 1.19 are affected.
What to do: Upgrade Apache XML Graphics Batik to 1.20, which fixes unencoded font metadata in SVGFont.
| Product | Affected | Fixed in |
|---|---|---|
| Apache XML Graphics Batik | through 1.19 | 1.20 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
A Cross-Site Scripting via Unencoded Font Metadata in Apache Batik SVGFont. This issue affects Apache XML Graphics Batik: through 1.19. Users are recommended to upgrade to version 1.20, which fixes the issue.
Today 1.5K readers · 2.4K views · 768 reads · all time 189K views