cve.bz

CVE-2026-43971 ninenines cowlib: Improper Encoding or Escaping of Output

6.3 mediumEPSS 0.5%Fix available

Medium (6.3) in ninenines cowlib. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in cowlib 2.20.0.

On this page
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 before 2.20.0.

Severity

CVSS 4.0

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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-116 Improper Encoding or Escaping of Output
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-43971 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-43971?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-43971?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-43971 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ninenines cowlibfrom 2.9.0 before 2.20.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
EEF-CVE-2026-43971Hexcowlib>=2.9.0 <2.20.02.20.0
EEF-CVE-2026-439712.19.0, 2.18.0, 2.17.1, 2.17.0, 2.16.1 and 11 moreno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14erlang-cowlib2.20.0-1DEBIAN-CVE-2026-43971
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 moreerlang-cowlibno fix listedUBUNTU-CVE-2026-43971
Red Hathummingbird:1rabbitmq-server4.30:4.3.5-1.1.hum1RHSA-2026:66210
Azure Linux3rabbitmq-server3.13.7-9AZL-96873

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in cowlib, an Erlang library for HTTP parsing and manipulation. Due to improper encoding of output in the cow_link:link/1 function, an attacker can perform Link header directive smuggling by injecting special characters in the target URI, rel value, or attribute keys. Applications that process Link headers through cowlib and pass untrusted input to cow_link:link/1 may force victim browsers to establish out-of-band connections to attacker-controlled servers, potentially leading to information disclosure or bypassing security controls. Red Hat products that bundle cowlib are only affected if they call cow_link:link/1 with untrusted input; actual exploitability in RabbitMQ Server has not been verified.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesrabbitmq-server4-3-main-4.3.5-1.1.hum1Fixed 2026-09-09RHSA-2026:66210
Red Hat Hardened Imagesrabbitmq-server4.2Will not fix
Red Hat OpenStack Platform 16.2rabbitmq-serverNot affected
Red Hat OpenStack Platform 17.1rabbitmq-serverFix deferred
Red Hat OpenStack Platform 18.0rabbitmq-serverFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-43971.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON