Loading advisory.
Loading advisory.
Emissary has Stored XSS via Navigation Template Link Injection
Mustache navigation templates interpolated configuration-controlled link values directly into href attributes without URL scheme validation.
Published 2026-04-07 15:26 UTC · Modified 2026-11-04 22:15 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| gov.nsa.emissary:emissary | Maven | < 8.39.0 versions 8.0.0, 8.1.0, 8.10.0, 8.11.0, 8.11.1, 8.12.0, 8.13.0, 8.14.0, 8.15.0, 8.16.0, 8.17.0, 8.18.0, 8.19.0, 8.19.1, 8.2.0, 8.20.0, 8.21.0, 8.22.0, 8.23.0, 8.24.0 and 22 more | 8.39.0 | No single command for Maven. Update to 8.39.0 in your build file. |
Mustache navigation templates interpolated configuration-controlled link values
directly into href attributes without URL scheme validation. An administrator
who could modify the navItems configuration could inject javascript: URIs,
enabling stored cross-site scripting (XSS) against other authenticated users
viewing the Emissary web interface.
nav.mustache (line 10){{#navItems}}
<li class="nav-item">
<a class="nav-link" href="{{link}}">{{display}}</a>
</li>
{{/navItems}}The {{link}} value was rendered without any scheme validation. Mustache's
default HTML escaping protects against injection of new HTML tags but does
not prevent javascript: URIs in href attributes, since javascript:
contains no characters that HTML-escaping would alter.
An administrator sets a navigation item's link to:
javascript:alert(document.cookie)Any authenticated user who clicks the navigation link executes the script in their browser context.
Session hijacking via cookie theft
Actions performed on behalf of the victim user
Requires administrative access to modify navigation configuration
Requires user interaction (clicking the malicious link)
Exploitation requires administrative access to modify the navItems
configuration
User interaction (clicking the link) is required
The Emissary web interface is typically accessed only by authenticated operators within a trusted network
Fixed in PR #1293, merged into release 8.39.0.
NavAction.javaAn allowlist regex was added that only permits http://, https://, or
site-relative (/) URLs:
private static final Pattern VALID_LINK = Pattern.compile("^(https?:/)?/.*");
private static boolean isValidLink(String link) {
if (!VALID_LINK.matcher(link).matches()) {
logger.warn("Skipping invalid navigation link '{}'", link);
return false;
}
return true;
}Invalid links are logged and silently dropped from the rendered navigation.
nav.mustacheAdded rel="noopener noreferrer" to all navigation link anchor tags as a
defense-in-depth measure:
<a class="nav-link" href="{{link}}" rel="noopener noreferrer">{{display}}</a>Tests were added to verify that javascript: and ftp:// URIs are rejected
while http://, https://, and site-relative (/path) links are accepted.
If upgrading is not immediately possible, audit the navigation configuration
to ensure all navItems link values use only http://, https://, or
relative (/) URL schemes.
Original report: GHSA-wjqm-p579-x3ww
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.002 on 2026-11-24 to 0.003 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |
| 2026-11-26 | 0.003 | 0.002 | v2026.06.15 |