Skip to main content

Valhalla CVE-2026-49294

| EUVDEUVD-2026-36741 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-15 GitHub_M
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious JSONP callback URL
  2. Delivery
    Delivers URL to victim via phishing or injected script tag
  3. Exploit
    Victim browser fetches URL from Valhalla server
  4. Execution
    Server reflects payload as application/javascript
  5. Persist
    Browser executes script in Valhalla origin
  6. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

valhalla ≤ 3.6.3

Affected Packages

euvd valhalla no fix

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

Vendor (GitHub_M) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.1%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy