Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker supplies malicious input to application
-
DeliveryApplication passes unvalidated field to cow_link:link/1
-
ExploitUnescaped special character breaks Link header grammar
-
ExecutionSynthetic rel directive injected into response header
-
PersistVictim browser executes preconnect/preload to attacker-controlled origin
-
ImpactAttacker receives out-of-band connection revealing victim IP
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
|
| Exploitation Conditions | Exploitation requires two simultaneous application-level conditions: first, the target application must invoke cow_link:link/1 (or cow_link:do_link/1) to serialize Link headers that are sent to browser clients; second, at least one of the three interpolated fields - the target URI, the rel value, or an attribute key - must be directly or indirectly influenced by attacker-controlled input (e.g., a query parameter, request header, or database value that originated from external input). Applications that use cowlib only for parsing Link headers (not re-serializing them) or that pass only fully server-controlled, hardcoded values to cow_link:link/1 are not exploitable via this path. Exploitation is further limited to cowlib 2.9.0 and later; the browser acting on injected directives is the subsequent impacted system, not the server itself, so server-side data confidentiality is not directly at risk. |
| Impact | Real-world risk is moderate and highly conditional. The CVSS 4.0 score of 6.3 with AT:P correctly captures the deployment-specific precondition: exploitation requires an application that both accepts externally influenced Link header fields AND round-trips them through cow_link:link/1 without sanitization. This is not a default-installation risk - it is a developer-pattern risk. No KEV listing exists and no public exploit has been identified, indicating no confirmed active exploitation. The VC:N/SC:N impact profile means no direct server-side data exfiltration; the integrity impact (VI:L, SI:L) reflects the ability to inject browser-side fetch directives toward attacker origins, which may yield IP disclosure, timing side-channels, or prefetch abuse. EPSS data was not supplied, so exploitation probability cannot be quantified from this source. The absence of a patch version in available references is a notable data gap - defenders cannot yet remediate by version upgrade alone. |
| Exploit ScenarioDerived | An attacker submits a crafted HTTP request to a cowlib-based application where a user-controlled value (for example, a redirect target or resource URL) is later passed as the target URI argument to cow_link:link/1. By embedding a '>' character in that value, the attacker terminates the URI slot early and appends a synthetic ', <https://attacker.example>; rel="preconnect"' entry into the emitted Link header. A victim browser receiving the response then initiates a DNS lookup and TCP connection to attacker.example, leaking the victim's IP address and enabling timing-based correlation. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Link header directive smuggling in ninenines cowlib (2.9.0+) enables attacker-controlled browsers to initiate out-of-band connections to arbitrary origins. The cow_link:do_link/1 function emits target URI, rel values, and attribute keys verbatim into serialized Link headers - a '>' byte in the target prematurely terminates the URI angle-bracket slot, while '"' or '\' in rel breaks out of the quoted-string context, allowing injection of additional synthetic link directives. No public exploit has been identified at time of analysis, but the CVSS 4.0 AT:P metric confirms that exploitation depends on a specific application-level precondition.
RemediationAI
No vendor-released patch with a specific fixed version has been identified in the available data at time of analysis; the ERLEF advisory at https://cna.erlef.org/cves/CVE-2026-43971.html and OSV entry at https://osv.dev/vulnerability/EEF-CVE-2026-43971 should be monitored for an upstream fix. Until a patched cowlib release is available, the primary compensating control is to sanitize all externally influenced values before passing them to cow_link:link/1: percent-encode or reject any '>' characters in target URIs, apply RFC 7230 quoted-string escaping (replacing '"' with '\"' and '\' with '\\') to rel and attribute string values, and restrict attribute key characters to the RFC 7230 token character set (alphanum plus select symbols, excluding whitespace, '=', and '"'). Applications that do not round-trip parsed Link headers from untrusted input through cow_link:link/1 are not exposed to this vector and require no immediate action. Disabling Link header generation entirely is a side-effect-free mitigation where rel=preconnect/preload/prerender directives are not required for application function.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
cowlib (CPE: cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*) is the Erlang support library underlying the Cowboy HTTP server, providing RFC 8288 Link header parsing and serialization. The vulnerable function cow_link:do_link/1 constructs Link header values by string interpolation without applying RFC 7230 token-grammar validation, percent-encoding, or quoted-string escape sequences. CWE-116 (Improper Encoding or Escaping of Output) describes this root cause precisely: outputs intended for a structured wire format are not sanitized before emission. Three distinct injection surfaces exist: the angle-bracket-delimited target URI (breakout via '>'), the quoted rel string (breakout via '"' or '\''), and attribute keys (any byte emitted verbatim). Browsers interpret injected directives such as rel="preconnect", rel="preload", and rel="prerender" without further validation, making them effective SSRF-by-proxy primitives against victim clients.
Know when Cowlib 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
AC:H reflects AT:P precondition (app must round-trip attacker input through cow_link); S:C because victim browsers are the impacted subsequent system.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Improper Encoding or Escaping of Output vulnerability in ninenines cowlib allows Link header directive smuggling via unescaped special characters in cow_link:link/1.
cow_link:do_link/1 in cowlib interpolates the target URI, rel value, and attribute keys directly into the serialized Link: header value without escaping or token-grammar validation. A > byte in target prematurely closes the URI slot, allowing an attacker to append additional link entries with attacker-chosen rel directives. A " or \ in rel escapes the quoted string and opens new parameters. Any byte - including whitespace, =, and " - in an attribute key is emitted verbatim. Because browsers act on Link: directives such as rel="preconnect", rel="preload", and rel="prerender", an attacker who can influence these fields in an application that round-trips parsed Link headers through cow_link:link/1 can force victim browsers to make out-of-band connections to attacker-controlled origins.
This issue affects cowlib: from 2.9.0 onward.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An unauthenticated remote peer can exhaust memory on an HTTP/2 endpoint built on ninenines cowlib 2.7.0 or later by send
Remote denial of service in ninenines cowlib (the HTTP support library behind the Cowboy web server and Gun client) from
Unauthenticated remote denial of service in ninenines cowlib (versions 0.1.0 through 2.16.0) allows a single crafted SPD
HTTP response splitting in ninenines cowlib allows network-accessible attackers to inject arbitrary HTTP headers when ap
CRLF injection in cowlib's SSE encoder allows an attacker who supplies field values - id, event, data, or comment - cont
CRLF injection in cowlib's cow_cookie:cookie/1 encoder allows an attacker who controls cookie name or value strings to i
EUVD-2026-60573
GHSA-gg23-fwhr-prjh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB