
Python PoC for CVE-2026-21589, a pre-auth path traversal in Atlassian Data Center products that reads arbitrary files under the web app root via double URI decoding.
Pre-auth arbitrary file read in Atlassian DC products: Jira, JSM, Confluence, Bitbucket, Bamboo, Crowd, Crucible, Fisheye. Anything inside the web application root — WEB-INF included — with no credentials. CVSS 9.3. Atlassian advisory and patches are out since 2026-10-05; this repo is just the missing exploit.
Affected / fixed (short version): everything below the October 2026 security releases. Jira 10.3.26 and JSM 11.3.12 are patched, older lines are not.
The /download/* webresource router decodes the request URI a second time (URLDecoder.decode(request.getRequestURI())) and then turns :: into / (Router.unescapeSlashes). Tomcat only decodes once, and ..%3a%3a doesn't look like a separator to its normalizer — so the traversal is assembled inside the app where nobody checks it. The tail gets concatenated onto the anchor resource location and fed to ServletContext.getResourceAsStream. The fix (isInDirectory() containment in ResourceFactory) only landed in webresource 7.2.17 / 8.0.14.
The PoC rides a stock Jira anchor, jira.webresources:color-picker-popup, whose images/ resource sits 5 segments deep — hence depth 5. Any directory-named web-resource of the target product works as an anchor; swap ANCHOR in the script if yours differs.
No dependencies, plain stdlib.
# default: read WEB-INF/web.xml
python3 cve-2026-21589.py https://jira.example.com
# read something else, save it
python3 cve-2026-21589.py https://jira.example.com WEB-INF/classes/seraph-config.xml -o seraph.xml
# if the main prefix is blocked, try all known prefixes / sweep depths
python3 cve-2026-21589.py https://jira.example.com --all-routes
python3 cve-2026-21589.py https://jira.example.com --try-depths
Status codes mean things:
| code | meaning |
|---|---|
| 200 | file read, body is the file |
| 404 | patched — the fixed router nulls out the resource |
| 302 | this route is auth-gated or redirected, not a read |
| 500 | reached the resolver, wrong depth or anchor |
Test only what you own or are explicitly allowed to test. Released after vendor patches shipped; if you run an unpatched instance, the interesting stuff to check next is your access logs — decode request URIs twice and look for %3a%3a under /download/.