Vulnerability Details : CVE-2021-23387
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.
Vulnerability category: Open redirect
Products affected by CVE-2021-23387
- cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-23387
0.11%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 45 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-23387
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:N |
8.6
|
4.9
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
2.8
|
2.5
|
Snyk |
CWE ids for CVE-2021-23387
-
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-23387
-
https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36
Page not found · GitHub · GitHubBroken Link
-
https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707
Open Redirect in trailing-slash | SnykExploit;Patch;Third Party Advisory
-
https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048
fix open redirect (#3) · fardog/trailing-slash@f8e66f1 · GitHubPatch;Third Party Advisory
Jump to