Skip to main content

cowlib EUVDEUVD-2026-60573

| CVE-2026-43971 MEDIUM
Improper Encoding or Escaping of Output (CWE-116)
2026-08-18 EEF GHSA-gg23-fwhr-prjh
6.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Attacker supplies malicious input to application
  2. Delivery
    Application passes unvalidated field to cow_link:link/1
  3. Exploit
    Unescaped special character breaks Link header grammar
  4. Execution
    Synthetic rel directive injected into response header
  5. Persist
    Victim browser executes preconnect/preload to attacker-controlled origin
  6. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

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

cowlib 2.9.0 <*
cowlib 485d58dfa91b91d98135dc95e5615f421715dae5 <*

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

Vendor (EEF) PRIMARY 6.3 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche Erlang HTTP ecosystem library, limited outside BEAM deployments
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

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.3%
Patch available Yes
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

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