---
title: "koa security advisories"
description: "5 known security advisories for koa, with the versions they affect and the version that fixes each."
url: https://inlinr.com/packages/koa/security
lang: en
---

[Packages](https://inlinr.com/packages)

# koa

3.3.0 · 3 Nov 2026 MIT 9.7M / week [Repository](https://github.com/koajs/koa) [Homepage](https://koajs.com/) [npm](https://www.npmjs.com/package/koa) [Atom feed](https://inlinr.com/packages/feed/koa)

Your version 

## Security advisories

From OSV, open ones first. Each release line gets its own fix: an older major is fixed by a patch on that major, not by moving to the newest one.

| Line | Newest | Where it stands                                                                |
| ---- | ------ | ------------------------------------------------------------------------------ |
|      | 3.3.0  | Safe from 3.1.2                                                                |
|      | 2.16.4 | Safe from 2.16.4                                                               |
|      | 1.7.1  | 67 open advisories, worst critical  · last release Feb 2025, no longer updated |

- Critical  
[Inefficient Regular Expression Complexity in koa](https://inlinr.com/advisories/GHSA-593f-38f6-jp5m)GHSA-593f-38f6-jp5m · 12 Feb 2025  
fixed in 2.15.4, 1.7.1, 0.21.2
- High  
[Koa has Host Header Injection via ctx.hostname](https://inlinr.com/advisories/GHSA-7gcc-r8m5-44qm)GHSA-7gcc-r8m5-44qm · 26 Feb 2026  
fixed in 3.1.2, 2.16.4
- Moderate  
[Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic](https://inlinr.com/advisories/GHSA-g8mr-fgfg-5qpc)GHSA-g8mr-fgfg-5qpc · 21 Oct 2025  
fixed in 3.0.3, 2.16.3
- Moderate  
[Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function](https://inlinr.com/advisories/GHSA-x2rg-q646-7m2v)GHSA-x2rg-q646-7m2v · 9 Apr 2025  
fixed in 2.16.1
- Low  
[Koa Open Redirect via Referrer Header (User-Controlled)](https://inlinr.com/advisories/GHSA-jgmv-j7ww-jx2x)GHSA-jgmv-j7ww-jx2x · 29 Jul 2025  
fixed in 3.0.1, 2.16.2

### Quality and security signals

What [npm](https://www.npmjs.com/package/koa) and [deps.dev](https://deps.dev/npm/koa) say about the latest release. Signals, not a verdict.

Reading npm and deps.dev…

Reading releases, release notes and advisories…

Registry facts last checked 21 Nov 2026\. Releases and advisories last read 21 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
