Vulnerability · Published Oct 20, 2020 · Assigned by snyk
CVE-2020-7749Server-side Request Forgery (SSRF)
High 7.6
In plain English
A high-severity security flaw in osm-static-maps. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | osm-static-maps | 3.9.0 | GHSA-pxcf-v868-m492 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | osm-static-maps | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-JS-OSMSTATICMAPS-609637 x_refsource_MISC
- https://github.com/jperelli/osm-static-maps/blob/master/src/template.html%23L142 x_refsource_MISC
- https://github.com/jperelli/osm-static-maps/pull/24 x_refsource_MISC