CVE-2021-23718:
Server-Side Request Forgery in ssrf-agent
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57089%
CWE
Published
12/2/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ssrf-agent | npm | < 1.0.5 | 1.0.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the defaultIpChecker
function in index.js
as shown in the GitHub commit diff. The original code only checked isV4Format()
before validating if an IP was private, leaving IPv6 addresses unvalidated. The patched version added isV6Format()
checking to prevent bypasses via IPv6 addresses. Multiple sources including the CVE description, Snyk advisory, and commit message explicitly reference this function as the vulnerable component that failed to properly validate private IP addresses.