Detection PoC for CVE-2026-5430 — unauthenticated JWT algorithm bypass (CVSS 10.0) affecting WSO2 API Manager 4.1.0–4.6.0. Read-only assessment tool with patch confirmation and WAF detection. Authorized use only.
Detection PoC — Authorized Security Assessment Use Only
CVE-2026-5430 is a critical unauthenticated account takeover vulnerability in WSO2 API Manager and related products. A forged JWT bearing an unsupported signing algorithm (e.g. HS256) causes OAuthAuthenticationInterceptor to throw an APIManagementException during signature verification. In unpatched versions this exception is silently swallowed — the request proceeds with full admin privileges, bypassing authentication entirely.
No valid credentials or cryptographic keys are required to exploit this vulnerability.
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H| Product | Affected Versions | Fixed Update Level |
|---|---|---|
| WSO2 API Manager | 4.1.0 – 4.6.0 | 4.6.0 u21 / 4.5.0 u57 / 4.4.0 u72 / 4.3.0 u108 / 4.2.0 u197 / 4.1.0 u257 |
| WSO2 API Control Plane | 4.5.0, 4.6.0 | 4.6.0 u22 / 4.5.0 u58 |
| WSO2 Traffic Manager | 4.5.0, 4.6.0 | 4.6.0 u21 / 4.5.0 u56 |
| WSO2 Universal Gateway | 4.5.0, 4.6.0 | 4.6.0 u21 / 4.5.0 u57 |
Request → OAuthAuthenticationInterceptor
└─ token contains '.' → JWT path
└─ OAuthJwtAuthenticatorImpl.validateJWTToken()
└─ JWTValidatorImpl.validateSignature()
└─ JWTUtil.verifyTokenSignature(jwt, alias)
└─ algorithm not RSA → throws APIManagementException
└─ PRE-PATCH : catch → return ← FAIL OPEN (root cause)
└─ POST-PATCH: catch → throw ← FAIL CLOSED (fixed)
Patch: carbon-apimgt PR #13752 — merged 2026-04-12
This script tests three vectors, all within the CVE-2026-5430 scope:
| Vector | Algorithm | kid | Target Code Path |
|---|---|---|---|
| V1 | HS256 | None | verifyTokenSignature(jwt, alias) — original CVE vector |
| V2 | RS256 | None | Same alias overload — tests patch boundary (RSA claim, invalid sig) |
| V3 | HS256 | wso2apim | verifyTokenSignature(jwt, keyID) — kid routing branch |
richpip install rich
# Standard detection
python3 cve_2026_5430_poc.py https://<target>:9443
# With raw response output for WAF/proxy diagnosis
python3 cve_2026_5430_poc.py https://<target>:9443 --debug
Exit codes
| Code | Meaning |
|---|---|
0 | Not vulnerable / patched |
1 | CVE-2026-5430 confirmed |
2 | Target unreachable |
| Phase | Description |
|---|---|
| Phase 0 — Diagnostic | Confirms WSO2 is reachable, fingerprints WAF/proxy presence, checks port connectivity |
| Phase 1 — Control Sweep | Probes all 16 REST paths without a token to identify auth-gated endpoints |
| Phase 2 — Attack Vectors | Tests V1–V3 against each auth-gated path with a progress display and token manifest |
| Phase 3 — Results | Per-path results table, finding panels with full decoded JWT breakdown |
Before testing begins, the script displays every token that will be sent to the target — including the decoded header, payload claims, signature, and truncated token string — so the assessment is fully transparent and reproducible.
The script distinguishes three outcomes per check:
| Result | Meaning |
|---|---|
VULNERABLE | HTTP 200 with authenticated API data — bypass confirmed |
PATCHED | HTTP 401 with WSO2 ErrorDTO body (error code 900901) — PR #13752 active |
INCONCLUSIVE | HTTP 401 with no ErrorDTO — likely WAF/proxy, not the code patch |
INCONCLUSIVE ≠ safe. A WAF blocking the forged JWT is a compensating control, not a fix. Verify the update level directly on the host:
cat <WSO2_HOME>/updates/config.json | grep update-level
Apply the relevant WSO2 update level per the official advisory: https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2026-5328/
This script:
User-Agent: CVE-2026-5430-Detection/1.0 (authorized assessment) on all requestsazp: cve-2026-5430-detection in token claims so forged tokens are identifiable in WSO2 access logsThe following are explicitly out of scope and not tested by this script:
alg:none bypass (separate algorithm confusion class)| Resource | Link |
|---|---|
| WSO2 Security Advisory | https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2026-5328/ |
| Patch (carbon-apimgt PR #13752) | https://github.com/wso2/carbon-apimgt/pull/13752 |
| Test improvement (product-apim PR #14167) | https://github.com/wso2/product-apim/pull/14167 |
| CISA KEV Entry | https://www.cisa.gov/known-exploited-vulnerabilities-catalog |
| NVD | https://nvd.nist.gov/vuln/detail/CVE-2026-5430 |
This tool is provided for authorized security assessments only. Do not run against any system without explicit written authorization from the system owner. Unauthorized use may violate the Computer Fraud and Abuse Act (CFAA), the Philippines Cybercrime Prevention Act of 2012 (RA 10175), and equivalent laws in your jurisdiction. The authors accept no liability for misuse.