CVE-2021-23384
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-23384 is an Open Redirect vulnerability affecting the koa-remove-trailing-slashes package versions below 2.0.2. The vulnerability was disclosed on March 15, 2021, and published on May 17, 2021. The vulnerability exists in the removeTrailingSlashes() function within index.js, where the web server uses relative URLs instead of absolute URLs, potentially allowing for malicious redirects (Snyk).

Technical details

The vulnerability allows for open redirect attacks through the use of trailing double slashes in the URL when accessing vulnerable endpoints (e.g., https://example.com//attacker.example/). The CVSS v3.1 base score is 5.4 (Medium), with the following metrics: Attack Vector: Network, Attack Complexity: Low, Privileges Required: None, User Interaction: Required, Scope: Unchanged, Confidentiality: Low, Integrity: Low, and Availability: None (Snyk).

Impact

When exploited, this vulnerability can lead to open redirects, potentially allowing attackers to redirect users to malicious websites. The impact includes potential loss of confidentiality and integrity, though both are limited in scope. The vulnerability does not affect system availability (Snyk).

Exploitability

The vulnerability has a proof-of-concept exploit available. It requires user interaction for successful exploitation, but no special privileges are needed. The exploit probability is rated at 0.14% (52nd percentile) according to the EPSS model (Snyk).

Mitigation and workarounds

The recommended mitigation is to upgrade koa-remove-trailing-slashes to version 2.0.2 or higher, which contains the fix for this vulnerability (Snyk).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-63376HIGH8.2
  • JavaScript logoJavaScript
  • trigger-dev
NoYesSep 03, 2026
GHSA-7q9c-hpx7-9cwmHIGH7.5
  • JavaScript logoJavaScript
  • @typespec/spector
NoYesSep 04, 2026
CVE-2026-77465HIGH7.5
  • JavaScript logoJavaScript
  • cockpit-image-builder.src
NoYesSep 03, 2026
CVE-2026-71429MEDIUM6.2
  • JavaScript logoJavaScript
  • stream-json
NoYesSep 03, 2026
GHSA-6hxq-p678-4hr2LOW2
  • JavaScript logoJavaScript
  • @simplewebauthn/server
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management