KoaJS Koa HTTP Header response.js back redirect
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601.
Summary
A vulnerability, which was classified as problematic, was found in KoaJS Koa up to 3.0.0. Affected is the function back in the library lib/response.js of the component HTTP Header Handler. The manipulation of the argument Referrer leads to open redirect. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| koajs | Koa | 3.0 | — | No fix listed | CNA |
| — | koa (npm) | 2.0.0 to before 2.16.2 | 2.16.2 | Patch available | GHSA-jgmv-j7ww-jx2x |
| — | koa (npm) | 3.0.0-alpha.0 to before 3.0.1 | 3.0.1 | Patch available | GHSA-jgmv-j7ww-jx2x |
- Koa Vendorkoajs Affected 3.0 Fixed in — No fix listed CNA
- koa (npm) Vendor— Affected 2.0.0 to before 2.16.2 Fixed in 2.16.2 Patch available GHSA-jgmv-j7ww-jx2x
- koa (npm) Vendor— Affected 3.0.0-alpha.0 to before 3.0.1 Fixed in 3.0.1 Patch available GHSA-jgmv-j7ww-jx2x
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:* | 2.0.0 to before 2.16.2 | Vulnerable | koajs |
| cpe:2.3:a:koajs:koa:3.0.0:-:*:*:*:node.js:*:* | 3.0.0 | Vulnerable | koajs |
| cpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:* | 3.0.0 alpha0 | Vulnerable | koajs |
| cpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:* | 3.0.0 alpha1 | Vulnerable | koajs |
| cpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:* | 3.0.0 alpha2 | Vulnerable | koajs |
| cpe:2.3:a:koajs:koa:3.0.0:alpha3:*:*:*:node.js:*:* | 3.0.0 alpha3 | Vulnerable | koajs |
| cpe:2.3:a:koajs:koa:3.0.0:alpha4:*:*:*:node.js:*:* | 3.0.0 alpha4 | Vulnerable | koajs |
| cpe:2.3:a:koajs:koa:3.0.0:alpha5:*:*:*:node.js:*:* | 3.0.0 alpha5 | Vulnerable | koajs |
- cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:* Versions 2.0.0 to before 2.16.2 Vulnerable ·koajs
- cpe:2.3:a:koajs:koa:3.0.0:-:*:*:*:node.js:*:* Versions 3.0.0 Vulnerable ·koajs
- cpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:* Versions 3.0.0 alpha0 Vulnerable ·koajs
- cpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:* Versions 3.0.0 alpha1 Vulnerable ·koajs
- cpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:* Versions 3.0.0 alpha2 Vulnerable ·koajs
- cpe:2.3:a:koajs:koa:3.0.0:alpha3:*:*:*:node.js:*:* Versions 3.0.0 alpha3 Vulnerable ·koajs
- cpe:2.3:a:koajs:koa:3.0.0:alpha4:*:*:*:node.js:*:* Versions 3.0.0 alpha4 Vulnerable ·koajs
- cpe:2.3:a:koajs:koa:3.0.0:alpha5:*:*:*:node.js:*:* Versions 3.0.0 alpha5 Vulnerable ·koajs
Remediation
- Fix · GHSA-jgmv-j7ww-jx2x koa (npm) Fixed in 2.16.2 Advisory →
- Fix · GHSA-jgmv-j7ww-jx2x koa (npm) Fixed in 3.0.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2 | Affected | No fix yet: Fix deferred |
| OpenShift Service Mesh 3 | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-8129
- 2026-10-03 Alias added: GHSA-jgmv-j7ww-jx2x
- 2026-10-27 Affected versions changed · Red Hat
References
Exploit 2
More koajs Koa vulnerabilities
- TI-2026-22302 Koa has Host Header Injection via `ctx.hostname` CVSS 3.1HIGH 7.5
- TI-2025-38810 Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic CVSS 3.1MEDIUM 6.1
- TI-2025-18869 Koa has Inefficient Regular Expression Complexity CVSS 4.0CRITICAL 9.2
- TI-2025-23458 XSS at ctx.redirect() function in Koajs CVSS 3.1MEDIUM 6.1
Sources
- CVE-2025-8129 · CVE Program
- CVE-2025-8129 · NVD
- FIRST EPSS
- GHSA-jgmv-j7ww-jx2x · GitHub Advisory Database · CC BY 4.0
- CVE-2025-8129 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences