Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
Medium
VulnerabilityCVE-2026-43971cvecve-2026-43971cwe-116
Published: 08/18/2026 (08/18/2026, 09:01:53 UTC)
Source: CVE Database V5
Vendor/Project: ninenines
Product: cowlib

Description

CVE-2026-43971 is a medium severity vulnerability in ninenines cowlib version 2.9.0. It involves improper encoding or escaping of output in the cow_link:link/1 function, which allows an attacker to smuggle additional Link header directives by injecting unescaped special characters. This can cause victim browsers to make unintended out-of-band connections to attacker-controlled origins.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

cowlib
pkg:hex/cowlib
Affected versions
=2.9.0
GitHub Actionsmore threats →cve
ninenines/cowlib
pkg:github/ninenines/cowlib
CPE configurations
cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/18/2026, 09:30:50 UTC

Technical Analysis

The vulnerability in cowlib's cow_link:do_link/1 function arises because it directly interpolates the target URI, rel value, and attribute keys into the serialized Link header without proper escaping or validation. Specifically, a '>' byte in the target URI prematurely closes the URI slot, enabling injection of additional link entries with attacker-controlled rel directives. Similarly, '"' or '\' characters in the rel value can escape the quoted string and open new parameters. Attribute keys are emitted verbatim, including whitespace, '=', and '"' characters. Since browsers act on Link header directives like rel="preconnect", rel="preload", and rel="prerender", an attacker who can influence these fields in applications that use cow_link:link/1 can cause browsers to make out-of-band connections to attacker-controlled servers. This affects cowlib version 2.9.0.

Potential Impact

An attacker able to control the inputs to cow_link:link/1 can inject malicious Link header directives that cause victim browsers to initiate connections to attacker-controlled origins. This can lead to privacy leaks, tracking, or other unintended network interactions. The vulnerability does not require user interaction and can be exploited remotely over the network. However, exploitation requires the ability to influence the Link header fields processed by cowlib.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a patch is available, avoid passing untrusted input directly to cow_link:link/1 or apply manual escaping and validation of Link header components to prevent injection of special characters.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-05-04T18:23:25.574Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a8421d0bf8831d539835c23

Added to database: 08/18/2026, 09:11:44 UTC

Last enriched: 08/18/2026, 09:30:50 UTC

Last updated: 08/18/2026, 09:30:50 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses