/

CVE-2026-62345

Severity:

HIGH RISK

(7.6)

Stored Cross-Site Scripting (CWE-79) in Wanderer Maps

CVE-2026-62345

Deferred

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Arbitrary script execution in a map viewer's browser

Severity:

HIGH RISK

(7.6)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Wanderer can render a crafted waypoint icon value as HTML in a trail map without validating it, allowing script execution in a viewer's browser. An authenticated user may store the value, and federated waypoint data may also reach the vulnerable rendering path; successful exploitation could expose session tokens or enable actions as the viewer.

Affected context

The issue occurs when Wanderer creates map markers from waypoint data and passes the icon value to FontawesomeMarker, which inserts it into marker markup as HTML. It affects instances where crafted waypoint data can reach this rendering path, including data stored by an authenticated user or received through federation. The issue was fixed in version 0.19.3.

Exploit preconditions

  • Attack surface: Trail map rendering in a Wanderer instance
  • Required access: An attacker may need an authenticated account to store a crafted waypoint locally; federated waypoint data may reach the affected instance without a local account.
  • Trigger point: A viewer opens a trail map containing the crafted waypoint.
  • Why exploitation is possible: The waypoint icon value is inserted into marker HTML without validation or safe text handling.

Why this happens

The application treats waypoint data as trusted markup when creating a map marker. Inserting an unvalidated value with insertAdjacentHTML allows attacker-controlled content to be interpreted as HTML and script in the viewer's browser. This is a cross-site scripting weakness, mapped to CWE-79: Improper Neutralization of Input During Web Page Generation.

Potential impact

  • Attacker-controlled script may execute in a map viewer's browser.
  • Session tokens or other data accessible to the page could be exposed.
  • The script could perform actions with the viewer's permissions.
  • Trust in federated waypoint content could extend the issue to receiving instances.

General mitigation guidance

Defensive patterns focus on preventing untrusted waypoint values from becoming executable markup:

  • Render values as text or use safe DOM APIs instead of HTML insertion.
  • Accept only predefined icon identifiers using a strict allowlist.
  • Validate data at trust boundaries, including when receiving federated content.
  • Apply contextual output encoding where values must be rendered.
  • Limit application privileges and use browser-side security policies as defense in depth.

How teams detect issues like this

  • Use static analysis to identify unsafe HTML insertion APIs and trace whether their inputs can be influenced by waypoint or federated data.
  • Review marker-rendering code for missing allowlists, validation, or safe DOM construction.
  • Add tests and policy checks that verify untrusted data is never interpreted as markup.
  • Use automated code review tools to help flag potentially unsafe rendering patterns.

Sources

SourceLink
github.comgithub.com/open-wanderer/wanderer/commit/6135332ea69a3d9a4fe1dec5af1cb1ee74f70e2b
github.comgithub.com/open-wanderer/wanderer/pull/1093
github.comgithub.com/open-wanderer/wanderer/releases/tag/v0.19.3
github.comgithub.com/open-wanderer/wanderer/security/advisories/GHSA-hx3v-rv4v-w875

Frequently asked

questions

Exploitation requires a viewer to open an affected trail map. Crafted data may be stored by an authenticated user or arrive through federation, so the attacker may not need an account on the receiving instance.

For locally stored waypoint data, the described path requires an authenticated user who can create or modify a waypoint. Federated data may reach the vulnerable renderer without a local account.

Avoid inserting untrusted values as HTML. Render text through safe DOM APIs and restrict icon values to a defined allowlist.

Treat local and federated content as untrusted, validate it at trust boundaries, and use static analysis and code review to check for unsafe HTML sinks.

Find out what's already
exploitable in your codebase.