CVEvulnerability
CVE-2020-7749
7.6 HIGH
Official page ↗
- Status
- Modified
- Published
- 2020-10-20
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.6 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- CVSS 2.0 ([email protected])
- 6.5 MEDIUM — AV:N/AC:L/Au:S/C:P/I:P/A:P
- Weaknesses
- CWE-74, CWE-79
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 configurations
• osm-static-maps project osm-static-maps
Related
References
- https://github.com/jperelli/osm-static-maps/blob/master/src/template.html%23L142 Broken Link
- https://github.com/jperelli/osm-static-maps/pull/24 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-OSMSTATICMAPS-609637 Exploit, Third Party Advisory
- https://github.com/jperelli/osm-static-maps/blob/master/src/template.html%23L142 Broken Link
- https://github.com/jperelli/osm-static-maps/pull/24 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-OSMSTATICMAPS-609637 Exploit, Third Party Advisory