Advisory

GHSA-r773-pmw3-f4mr

Also known as: CVE-2021-23384

Summary

Open Redirect in koa-remove-trailing-slashes

Details

The package koa-remove-trailing-slashes before 2.0.2 are vulnerable to Open Redirect via the use of trailing double slashes in the URL when accessing the vulnerable endpoint (such as https://example.com//attacker.example/). The vulnerable code is in index.js::removeTrailingSlashes(), as the web server uses relative URLs instead of absolute URLs.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-02-10 23:47 UTC
Modified
2026-03-13 21:56 UTC

Affected packages and fixes

koa-remove-trailing-slashes

npm · All systems

Affected

  • introduced 0, fixed 2.0.2 (semver)

Fixed versions

2.0.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences