Skip to main content

Apache Batik EUVDEUVD-2026-123472

| CVE-2026-40853 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-11 apache GHSA-6rfp-fjvf-86m8
5.4
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft SVG with malicious font metadata
  2. Delivery
    Submit to app using Apache Batik
  3. Exploit
    Batik emits metadata unencoded
  4. Execution
    Victim renders page in browser
  5. Impact
    Injected script executes in victim context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that an application using Apache Batik (through 1.19) parse an attacker-controlled SVG font and then emit that font's metadata into an HTML/web output context without additional encoding - the flaw is the unencoded font metadata in SVGFont handling. Concretely, the deployment must both accept untrusted SVG input and surface Batik's rendered or extracted font metadata where a browser interprets it. Limiting factors: the attack needs a victim to view the resulting output (user interaction), and risk is confined to deployments that actually process untrusted SVG and display font metadata in a web context; applications that never render third-party SVG metadata to browsers are not meaningfully exposed. The trigger mechanism beyond 'unencoded font metadata' is not further detailed in the available sources.

Impact

This is a stored/reflected Cross-Site Scripting flaw (CWE-79) in Apache Batik's SVGFont handling, where font metadata is emitted without output encoding. No CVSS vector, EPSS score, KEV entry, or SSVC exploitation decision was provided in the input, so several standard prioritization signals are simply absent rather than negative - this should be treated as missing data, not confirmation of low risk. The only priority signal supplied is the vuln.today 'this_month' decision label, which places it below act_now/emergency but still as a tracked remediation item. Exploitation status is 'no public exploit identified at time of analysis': the single reference is the Apache announcement thread, with no PoC or exploit reference present. The realistic risk profile is that of a typical library-level XSS: it matters chiefly where Batik is used to process untrusted SVG and surface its output in a browser or HTML context, and the practical severity depends entirely on how the embedding application exposes that output. Because no vendor CVSS was issued, the authentication/interaction qualifiers below are inferred from the XSS class and the description, not from a confirmed vector - verify against the Apache advisory before acting on them.

Exploit ScenarioDerived

An attacker crafts an SVG file whose font metadata contains an XSS payload and gets an application built on Apache Batik (through 1.19) to process it and render the unencoded metadata into a web page. When a victim views the resulting page, the injected script executes in the victim's browser session in the context of the hosting application. No public exploit or PoC reference was provided in the input.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 11, 2026

Cross-site scripting in Apache XML Graphics Batik through 1.19 lets unauthenticated remote attackers inject script when an application parses attacker-controlled SVG font data and then emits Batik's font metadata into an HTML or web output context without encoding. Exploitation requires user interaction, because a victim must view the resulting output, and risk is confined to deployments that both process untrusted SVG and surface font metadata in a browser-interpreted context; impact is low confidentiality and integrity with no availability effect. The flaw is fixed in Batik 1.20, and no public exploit code or confirmed active exploitation was identified at time of analysis.

RemediationAI

Upgrade to Apache XML Graphics Batik 1.20 or later; this is the vendor-released fix cited in the advisory at https://lists.apache.org/thread.html/donct9w5lp5rlvl1p7m8cfx380d2wy4c. No separate vendor workaround is described in the available sources. Deployments that cannot immediately upgrade can reduce exposure by not parsing untrusted SVG input and by avoiding the emission of Batik-extracted SVGFont metadata into HTML or other browser-interpreted output, since the assessed exploitation conditions require both untrusted SVG processing and browser rendering of the resulting metadata.

Affected VersionsENISA

Apache XML Graphics Batik 0 ≤1.19.0

Affected Packages

euvd apache_xml_graphics_batik no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Batik is a Java-based toolkit for SVG rendering and manipulation. The weakness is CWE-79, improper neutralization of input during web page generation, meaning metadata associated with an SVG font is not encoded before being emitted, so crafted font metadata can be interpreted as markup or script in a downstream HTML context. The affected CPE is cpe:2.3:a:apache_software_foundation:apache_xml_graphics_batik:*:*:*:*:*:*:*:* for versions through 1.19.0, and the assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, reflecting network reachability, no privileges required, mandatory user interaction, scope change, and low confidentiality and integrity impact. The sources do not describe the exact code path or encoding failure beyond unencoded font metadata in SVGFont handling; exposure applies where an application both accepts untrusted SVG input and displays Batik-derived font metadata in a browser context.

Know when Apache Xml Graphics Batik gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Standard reflected/stored XSS: remotely deliverable (AV:N), no privileges to supply crafted SVG (PR:N), victim must render the output (UI:R), script runs in a different security context (S:C) with limited C/I impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
CVSS changed
Nov 17, 2026 - 16:22 NVD
5.4 (MEDIUM)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
Common Java SVG toolkit embedded in document/graphics apps, not ubiquitous
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy