VDB
Sign up
HIGH7.6

GHSA-pxcf-v868-m492

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

Quick fix

GHSA-pxcf-v868-m492 — osm-static-maps: upgrade to the fixed version with the command below.

npm install osm-static-maps@3.9.0

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/osm-static-maps
Introduced in: 0Fixed in: 3.9.0
Fixnpm install osm-static-maps@3.9.0

References