---
id: "CVE-2026-40853"
page: "https://infrastack.ai/live/CVE-2026-40853"
kind: "vulnerability"
aliases: ["CVE-2026-40853"]
title: "Apache Batik: unencoded SVG font metadata enables cross-site scripting"
severity: "unknown"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["batik", "java", "package", "svg"]
not_affected_if: ["no-svg-rendering", "trusted-input-only"]
published_at: "2026-11-11T14:17:40+00:00"
first_seen_at: "2026-11-11T14:27:32+00:00"
updated_at: "2026-11-11T14:29:24+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40853", "first_seen_at": "2026-11-11T14:27:32+00:00"}]
exploit_sources: []
---

# Apache Batik: unencoded SVG font metadata enables cross-site scripting

Link for people: https://infrastack.ai/live/CVE-2026-40853 (this .md is for agents)

Apache Batik, a Java library for rendering SVG graphics, does not encode font metadata in its SVGFont handling. An attacker who supplies a crafted SVG file can get script to run in a viewer that renders it.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for `batik` or `xml-graphics-batik` in your Java dependencies (for example `pom.xml` or `build.gradle`) and note the version.
- Check whether your application renders user-supplied SVG files that use SVG fonts.

## Fix

- Apache XML Graphics Batik: upgrade to `1.20`

## Timeline

- 2026-11-11T14:27:32+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-40853

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
