Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious JSONP callback URL
-
DeliveryDelivers URL to victim via phishing or injected script tag
-
ExploitVictim browser fetches URL from Valhalla server
-
ExecutionServer reflects payload as application/javascript
-
PersistBrowser executes script in Valhalla origin
-
ImpactAttacker exfiltrates session tokens or performs origin-scoped actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The JSONP endpoint must be reachable by the attacker and the victim's browser - confirmed by AV:N. No authentication is required from the attacker to craft or host the malicious URL (PR:N). The victim must be induced to load the crafted URL in their browser, specifically via a mechanism that causes the browser to issue an HTTP GET to the Valhalla endpoint with the malicious callback parameter - for example, a script src tag on an attacker-controlled page (UI:R). Exploitation impact is maximised when the victim holds an active, authenticated session on the Valhalla origin (e.g., a web application hosted on the same domain); against deployments with no user-facing authentication or no cookies scoped to the Valhalla origin, the practical impact of code execution in that origin is reduced. JSONP support must not be disabled or stripped by an intermediary proxy. |
| Impact | The CVSS 6.1 base score is consistent with a reflected, user-interaction-dependent XSS with limited per-incident impact (C:L/I:L). The network attack vector (AV:N) and low complexity (AC:L) indicate no special positioning or race condition is required - any attacker can craft a payload URL. The critical limiting factor is UI:R: a victim must be induced to load the crafted URL, typically via phishing or a malicious link in a web page using a script src tag. The scope change (S:C) elevates concern beyond typical non-scoped reflected XSS because code executes within the Valhalla origin, meaning any cookies or tokens scoped to that origin are at risk. No EPSS data was provided, so exploitation probability cannot be quantified. Valhalla is not listed in the CISA KEV catalog, and no public exploit code has been identified at time of analysis. Real-world priority depends heavily on deployment context: public-facing Valhalla instances where users maintain authenticated sessions represent meaningfully higher risk than internal routing backends with no browser-facing user sessions. The absence of a patch elevates urgency for compensating controls. |
| Exploit ScenarioDerived | An attacker identifies a publicly accessible Valhalla instance and crafts a URL such as https://routing.example.com/route?jsonp=alert(document.cookie)// targeting the callback parameter. The attacker embeds this URL in a phishing email or malicious web page as a script src tag; when an authenticated victim's browser loads the page and fetches the URL, Valhalla reflects the payload wrapped in Content-Type: application/javascript, the browser executes it in the routing.example.com origin, and the attacker exfiltrates the victim's session token to an attacker-controlled server. No public exploit code is known at this time, but the technique is well-understood and trivially reproducible from the advisory description alone. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 15, 2026
Reflected XSS in Valhalla's JSONP endpoint allows unauthenticated remote attackers to inject and execute arbitrary JavaScript in a victim's browser by crafting a malicious URL containing payload in the callback parameter. All versions through 3.6.3 are affected, and the CVSS scope change (S:C) reflects that execution occurs in the serving origin's context rather than a sandboxed one, enabling session theft and unauthorized actions on authenticated victims. No patch was available at time of publication, and no public exploit code has been identified at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis - the CVE description explicitly states this issue was not fixed at time of publication. Operators should monitor the upstream repository at https://github.com/valhalla/valhalla and the advisory GHSA-85xx-39j8-r56x for patch availability. As immediate compensating controls: disable JSONP support entirely at the application or reverse-proxy layer if CORS is a viable alternative for cross-origin consumers, since modern browsers universally support CORS and JSONP is a legacy pattern. If disabling JSONP is not feasible, deploy a Web Application Firewall (WAF) rule to validate that the callback parameter matches a strict alphanumeric allowlist (e.g., [a-zA-Z0-9_]{1,64}) and reject or strip any request that does not conform - note this introduces a risk of breaking legitimate integrations that use non-standard callback names. Additionally, restrict network access to the Valhalla API to trusted internal networks where possible, reducing the pool of potential attackers who can deliver crafted URLs. None of these controls address the root cause; patching remains the definitive fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Valhalla is an open-source C++ routing engine (CPE: cpe:2.3:a:valhalla:valhalla:*:*:*:*:*:*:*:*) built on OpenStreetMap data, exposing HTTP APIs for routing and map-matching. It supports JSONP (JSON with Padding), a legacy browser technique for cross-origin data access predating CORS, where the API wraps a JSON response in a caller-supplied JavaScript function name. The flaw (CWE-79: Improper Neutralization of Input During Web Page Generation) occurs because the callback parameter value is written directly into the HTTP response body - with Content-Type: application/javascript - without validation, output encoding, or allowlist filtering. This is a textbook reflected XSS variant: the server acts as an unwilling script host, reflecting attacker-controlled content to victim browsers. The CVSS S:C metric confirms scope change: the vulnerability is on the Valhalla server, but the impact materialises in the victim's browser within the Valhalla origin.
Know when Valhalla gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Network-delivered reflected XSS requiring victim interaction (UI:R); no privileges needed; scope changes to victim browser origin (S:C); confidentiality and integrity limited to session-level data, no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
Valhalla is an open source routing engine and accompanying libraries for use with OpenStreetMap data. Versions 3.6.3 and prior are vulnerable to reflected cross-site scripting (XSS) due to improper neutralization of input in the JSONP callback parameter. When a request specifies a JSONP callback, the value is reflected directly into the HTTP response body with Content-Type: application/javascript, without any validation, output encoding, or allowlist filtering. An attacker can craft a URL containing arbitrary JavaScript in the callback parameter; if a victim is induced to load that URL via a <script src="..."> tag, the injected script executes in the context of the serving origin, potentially leading to session token theft, credential disclosure, or actions performed on behalf of the victim. This issue was not fixed at time of publication.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-36741
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB