CVE-2026-40853: Apache Batik SVG font metadata cross-site scripting

CVE-2026-40853 · Severity: info · Published 2026-11-11

Apache Batik is a toolkit for processing Scalable Vector Graphics (SVG) documents, widely used in Java applications for rendering graphics. An attacker can inject malicious scripts through unencoded font metadata in SVG files, which could execute arbitrary JavaScript in a victim's browser and enable account compromise, data theft, or malware distribution. This vulnerability affects versions through 1.19 and is fixed in version 1.20.

Technologies: Apache XML Graphics Batik. Vendors: Apache.

Quick answers

Is CVE-2026-40853 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-40853 being exploited in the wild.
How severe is CVE-2026-40853?
Informational severity, published 11 November 2026.
Which products and versions are affected?
Apache XML Graphics Batik through 1.19.
Is there a fix for CVE-2026-40853?
Yes: fixed in 1.20. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-40853 attacked?
It is attacked from the adjacent network, in a software library.
Am I affected by CVE-2026-40853?
Check whether you run Apache XML Graphics Batik at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 1.20

Technical details

A cross-site scripting (XSS) vulnerability exists in Apache Batik's SVGFont processing due to insufficient encoding of font metadata. An attacker can craft a malicious SVG file containing unencoded script payloads in font metadata that will be executed when the file is processed. The vulnerability requires the victim to open or process a malicious SVG file, but does not require authentication or special network conditions.

Affected products

  • Apache XML Graphics Batik through 1.19

Timeline

  • 2026-11-11: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.