CVE-2020-7749 Server-side Request Forgery (SSRF)

High 7.6 Published Updated

Attackers can inject code via unescaped user input, leading to XSS, SSRF, or local file reads in osm-static-maps.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-7749?

CVE-2020-7749 is a high-severity server-side request forgery vulnerability in osm-static-maps, published on 20 Oct 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

This affects all versions of package osm-static-maps. User input given to the package is passed directly to a template without escaping ({{{ ... }}}). As such, it is possible for an attacker to inject arbitrary HTML/JS code and depending on the context. It will be outputted as an HTML on the page which gives opportunity for XSS or rendered on the server (puppeteer) which also gives opportunity for SSRF and Local File Read.

Weakness: CWE-79, CWE-74

Which versions are affected by CVE-2020-7749?

2 open source packages ship an affected version, including osm-static-maps. It affects 1 product.

PackageAffectedFixed in
osm-static-maps npmAll versions3.9.0
osm-static-maps npmAll versions3.9.0

Products include Osm-Static-Maps Project Osm-Static-Maps.

How do I fix CVE-2020-7749?

Upgrade osm-static-maps to 3.9.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2020-7749 being exploited?

There is no known exploitation of CVE-2020-7749 in the wild and no public exploit code.

Sources

Also known as GHSA-pxcf-v868-m492.

Is CVE-2020-7749 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free