CVE-2020-7749
HIGH 7.6CVSS 3.1Injection and Cross-site Scripting in osm-static-maps
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.
- Published
- 20 Oct 2020
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-74CWE-79
- Also known as
- GHSA-pxcf-v868-m492
- Sources
- NVDJSONOSV GHSA-pxcf-v868-m492JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | osm-static-maps_project | osm-static-mapscpe:2.3:a:osm-static-maps_project:osm-static-maps:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | osm-static-maps | < 3.9.0 | 3.9.0 |
References
- https://github.com/jperelli/osm-static-maps/blob/master/src/template.html%23L142 · Broken Link, WEB
- https://github.com/jperelli/osm-static-maps/pull/24 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-OSMSTATICMAPS-609637 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7749 · ADVISORY
- https://github.com/jperelli/osm-static-maps/commit/97355d29e08753d1cfe99b1281dbaa06f4e651b0 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 20 Oct 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 May 2021)