Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') Affecting tileserver-gl package, versions <4.5.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-TILESERVERGL-7015520
  • published23 May 2024
  • disclosed22 May 2024
  • creditUnknown

Introduced: 22 May 2024

CVE-2024-35627  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade tileserver-gl to version 4.5.0 or higher.

Overview

tileserver-gl is a Map tile server for JSON GL styles - vector and server side generated raster tiles

Affected versions of this package are vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') through the key parameter due to improper input sanitization. An attacker can execute arbitrary scripts in the context of the user's browser by injecting malicious code.

PoC

http://localhost:8080/styles/basic-preview/?key=l5uof%27-alert(1)-%27t0shv#0.89/0/0

CVSS Scores

version 3.1