Advisory

GHSA-pxcf-v868-m492

Also known as: CVE-2020-7749

Summary

Injection and Cross-site Scripting in osm-static-maps

Details

This affects all versions of package osm-static-maps under 3.9.0. 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-10 18:43 UTC
Modified
2026-03-13 21:56 UTC

Affected packages and fixes

osm-static-maps

npm · All systems

Affected

  • introduced 0, fixed 3.9.0 (semver)

Fixed versions

3.9.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences