CVE-2021-23718 Server-side Request Forgery (SSRF)
Attackers can bypass IP validation to access internal resources via the defaultIpChecker function in the ssrf-agent library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-23718?
CVE-2021-23718 is a medium-severity server-side request forgery vulnerability in ssrf-agent, published on 22 Nov 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The package ssrf-agent before 1.0.5 are vulnerable to Server-side Request Forgery (SSRF) via the defaultIpChecker function. It fails to properly validate if the IP requested is private.
Weakness: CWE-918
Which versions are affected by CVE-2021-23718?
2 open source packages ship an affected version, including ssrf-agent. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ssrf-agent npm | All versions | 1.0.5 |
ssrf-agent npm | All versions | 1.0.5 |
Products include Ssrf-Agent Project Ssrf-Agent.
How do I fix CVE-2021-23718?
Upgrade ssrf-agent to 1.0.5 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2021-23718 being exploited?
There is no known exploitation of CVE-2021-23718 in the wild and no public exploit code.
Sources
Also known as GHSA-6gww-qpm6-mc2g.