PT-2026-76910 · Cowlib · Cowlib
CVSS v4.0
6.3
Medium
| Vector | AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Name of the Vulnerable Software and Affected Versions
cowlib versions 2.9.0 and later
Description
Improper encoding or escaping of output in the
cow link:link/1 function allows Link header directive smuggling. The cow link:do link/1 function interpolates the target URI, rel value, and attribute keys directly into the serialized Link header without escaping or token-grammar validation. Specifically, a > byte in the target can prematurely close the URI slot, enabling the addition of unauthorized link entries. Additionally, a " or `` in the rel value can escape the quoted string to open new parameters, and any byte in an attribute key is emitted verbatim. This can force browsers to make out-of-band connections to attacker-controlled origins through directives such as rel="preconnect", rel="preload", and rel="prerender".Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Improper Encoding or Escaping of Output
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Cowlib