CVE-2025-32379
XSS at ctx.redirect() function in Koajs
Koa is expressive middleware for Node.js using ES2017 async functions. In koa < 2.16.1 and < 3.0.0-alpha.5, passing untrusted user input to ctx.redirect() even after sanitizing it, may execute javascript code on the user who use the app. This issue is patched in 2.16.1 and 3.0.0-alpha.5.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.267% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Assessment source · checked 2026-11-19T12:57:31.507Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:31.507Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.588Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:30.819Z | OSV |
| affected | verified | 2026-11-19T12:57:31.507Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:31.507Z | CVE Program |
Affected versions and configuration
koajs koa; default status: unknown: >= 3.0.0-alpha.0, < 3.0.0-alpha.5 [affected; scheme: unspecified]; < 2.16.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "koajs",
"product": "koa",
"versions": [
{
"status": "affected",
"version": ">= 3.0.0-alpha.0, < 3.0.0-alpha.5"
},
{
"status": "affected",
"version": "< 2.16.1"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-32379",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2025-04-09T17:29:51.749257Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-09T20:45:15.899Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-x2rg-q646-7m2v",
"aliases": [
"CVE-2025-32379"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.16.1"
}
]
}
],
"package": {
"name": "koa",
"purl": "pkg:npm/koa",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-x2rg-q646-7m2v/GHSA-x2rg-q646-7m2v.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "3.0.0-alpha.1"
},
{
"fixed": "3.0.0-alpha.5"
}
]
}
],
"package": {
"name": "koa",
"purl": "pkg:npm/koa",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-x2rg-q646-7m2v/GHSA-x2rg-q646-7m2v.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-32379",
"type": "ADVISORY"
},
{
"url": "https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312",
"type": "WEB"
},
{
"url": "https://github.com/koajs/koa",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2025-04-09T16:15:25Z",
"github_reviewed_at": "2025-04-09T13:00:07Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | koa | Not a distribution channel | 2.16.1 | Official record |
| ecosystem-boundary | npm / package | koa | Not a distribution channel | 3.0.0-alpha.5 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:30.819ZArchived source JSON
Source publication: 2025-04-09T13:00:07.000Z
Source modification: 2025-04-09T20:29:43.000ZDocument fingerprint
21e1fe5d8680a6ef21fa8ac5841aa8616030957efde466707b5d03db8dfdddaf - CVE ProgramConsulted: 2026-11-19T12:57:31.507ZArchived source JSON
Source publication: 2025-04-09T15:56:40.574Z
Source modification: 2025-04-09T20:45:15.899ZDocument fingerprint
a20d233e60fd2c95179af6f1843627de02947c2be118e9f688019e87ea8a816f - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:40.588ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f828727fd2419e9ee62887077d52e76b99e46a1d7a1ce89e08e7e861a70ba109
Official status history
- UNKNOWN → PUBLISHED · · evidence