FKIE_CVE-2025-32379
Vulnerability from fkie_nvd - Published: 2025-04-09 16:15 - Updated: 2026-01-14 14:36
Severity ?
5.0 (Medium) - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
6.1 (Medium) - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
6.1 (Medium) - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Summary
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.
References
{
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*",
"matchCriteriaId": "A275ECA9-DD3D-460D-A7C5-713F4E20C786",
"versionEndExcluding": "2.16.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:*",
"matchCriteriaId": "C939FF76-3FDC-4439-8794-4DFC390B6AE5",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:*",
"matchCriteriaId": "6C0F27D9-2CCD-4CA4-BB80-3650CA1CC7D7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:*",
"matchCriteriaId": "AC7C1D95-EC40-445D-A46D-5B52C771E9EE",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:koajs:koa:3.0.0:alpha3:*:*:*:node.js:*:*",
"matchCriteriaId": "1CB59D3F-CD0C-46FB-92E6-A57B5309690E",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:koajs:koa:3.0.0:alpha4:*:*:*:node.js:*:*",
"matchCriteriaId": "7A156C47-5619-4AF3-B7F2-9BE83A5F8F15",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Koa is expressive middleware for Node.js using ES2017 async functions. In koa \u003c 2.16.1 and \u003c 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."
},
{
"lang": "es",
"value": "Koa es un middleware expresivo para Node.js que utiliza funciones as\u00edncronas de ES2017. En koa anteriores a la 2.16.1 y a la 3.0.0-alpha.5, pasar informaci\u00f3n de usuario no confiable a ctx.redirect(), incluso despu\u00e9s de depurarla, puede ejecutar c\u00f3digo JavaScript en el usuario que usa la aplicaci\u00f3n. Este problema se ha corregido en las versiones 2.16.1 y 3.0.0-alpha.5."
}
],
"id": "CVE-2025-32379",
"lastModified": "2026-01-14T14:36:06.413",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 5.0,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L",
"version": "3.1"
},
"exploitabilityScore": 1.6,
"impactScore": 3.4,
"source": "security-advisories@github.com",
"type": "Secondary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7,
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"published": "2025-04-09T16:15:25.903",
"references": [
{
"source": "security-advisories@github.com",
"tags": [
"Patch"
],
"url": "https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312"
},
{
"source": "security-advisories@github.com",
"tags": [
"Patch",
"Vendor Advisory"
],
"url": "https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v"
}
],
"sourceIdentifier": "security-advisories@github.com",
"vulnStatus": "Analyzed",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
],
"source": "security-advisories@github.com",
"type": "Secondary"
}
]
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…