The vulnerability is an incomplete fix for CVE-2026-35571 in NationalSecurityAgency/emissary. The original fix (commit e2078417464b) added URL validation to NavAction.java using the regex ^(https?:/)?/.*. This regex is flawed because: (1) the optional group (https?:/)? can be absent, reducing the pattern to //.*, which matches protocol-relative URLs like //evil.com/steal?c=SESSION and //169.254.169.254/latest/meta-data/ (SSRF to cloud metadata); and (2) it matches single-slash schemes like http:/evil.com which browsers normalize to http://evil.com (open redirect).
The vulnerable functions are in emissary.server.mvc.NavAction (inner class EmissaryNav):
isValidLink(String link) — the method that performs the flawed regex-based validation. This is the core vulnerable function.
convert(Map<String,String> map) — the method that processes the navigation link map and applies the isValidLink filter, feeding potentially malicious links through the bypassable validation.
Both functions exist in the vulnerable version (the incomplete fix). The complete fix (later commit, visible in the current default branch) replaced the regex with a CharMatcher-based allowlist and java.net.URI validation, but those are the patched versions and are NOT the vulnerable functions. The vulnerable functions are the ones introduced/modified by the incomplete fix commit e2078417464b, which used the flawed VALID_LINK regex.
Java profilers show full package/namespace paths, so the functions are reported as emissary.server.mvc.NavAction$EmissaryNav.isValidLink and emissary.server.mvc.NavAction$EmissaryNav.convert.