Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-23387

5.4 · MEDIUM
Published May 24, 2021 trailing-slash_project CWE-601 EPSS 1.15% (65th pctl)

Overview

CVE-2021-23387 is a medium-severity vulnerability affecting trailing-slash_project trailing-slash. It was published on May 24, 2021 and has a CVSS 3.1 base score of 5.4 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.4, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

The package trailing-slash before 2.0.1 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::createTrailing(), as the web server uses relative URLs instead of absolute URLs.

Remediation

Check the references section for vendor advisories and patches from trailing-slash_project. Update trailing-slash to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
trailing-slash_project trailing-slash >= 0, < 2.0.1 Affected

Frequently Asked Questions

What is CVE-2021-23387?

CVE-2021-23387 is a medium-severity vulnerability affecting trailing-slash_project trailing-slash. It was published on May 24, 2021 and has a CVSS 3.1 base score of 5.4 (MEDIUM).

How severe is CVE-2021-23387?

This vulnerability has a CVSS 3.1 base score of 5.4, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-23387?

Check the references section for vendor advisories and patches from trailing-slash_project. Update trailing-slash to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-23387?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-23387 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.