CVE-2026-56813: CWE-141 Improper Neutralization of Parameter/Argument Delimiters in elixir-plug plug
Improper Neutralization of Parameter/Argument Delimiters vulnerability in elixir-plug plug allows an attacker to inject or override HTTP cookie attributes. The Plug.Conn.Cookies.encode/2 function in lib/plug/conn/cookies.ex builds the Set-Cookie response header by interpolating the cookie value and its path, domain, same_site, and extra attributes directly into the header without neutralizing the ';' delimiter that separates cookie attributes. An application that places attacker-controlled data into a cookie value or attribute (for example via Plug.Conn.put_resp_cookie/4 when reflecting a username or preference) lets an attacker inject a ';' to append or override cookie attributes (such as Domain and Path scope, or dropping the Secure and HttpOnly flags), enabling cookie tossing and session fixation. Carriage return, line feed, and null bytes are rejected by Plug.Conn header validation, so HTTP response splitting is not possible, but attribute injection through ';' is not prevented. This issue affects plug: from 0.1.0 before 1.16.6, from 1.17.0 before 1.17.4, from 1.18.0 before 1.18.5, from 1.19.0 before 1.19.5, from 1.20.0 before 1.20.3.
AI Analysis
Technical Summary
The vulnerability arises from improper neutralization of parameter delimiters (CWE-141) in the plug library for Elixir. Specifically, the Plug.Conn.Cookies.encode/2 function builds the Set-Cookie HTTP response header by directly inserting cookie values and attributes without sanitizing the ';' delimiter. This allows an attacker who can control cookie values or attributes (e.g., via Plug.Conn.put_resp_cookie/4) to inject additional cookie attributes or override existing ones, such as Domain, Path, Secure, or HttpOnly flags. Although carriage return, line feed, and null bytes are rejected, preventing HTTP response splitting, the injection of ';' is not prevented, enabling attribute injection attacks like cookie tossing and session fixation. Affected versions include all from 0.1.0 up to but not including 1.16.6, and from 1.17.0 up to but not including 1.17.4, 1.18.5, 1.19.5, and 1.20.3 respectively.
Potential Impact
An attacker able to inject or override HTTP cookie attributes can manipulate cookie scope and security settings, potentially enabling cookie tossing and session fixation attacks. This can undermine session integrity and security controls relying on cookie attributes. However, the vulnerability does not allow HTTP response splitting due to header validation rejecting CR, LF, and null bytes. The overall impact is limited by the requirement for attacker-controlled input in cookie values or attributes and the low CVSS score reflects this.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid placing untrusted or attacker-controlled data directly into cookie values or attributes. Validate and sanitize any input used in cookies to prevent injection of the ';' delimiter. Monitor vendor communications for patches or updates addressing this issue.
CVE-2026-56813: CWE-141 Improper Neutralization of Parameter/Argument Delimiters in elixir-plug plug
Description
Improper Neutralization of Parameter/Argument Delimiters vulnerability in elixir-plug plug allows an attacker to inject or override HTTP cookie attributes. The Plug.Conn.Cookies.encode/2 function in lib/plug/conn/cookies.ex builds the Set-Cookie response header by interpolating the cookie value and its path, domain, same_site, and extra attributes directly into the header without neutralizing the ';' delimiter that separates cookie attributes. An application that places attacker-controlled data into a cookie value or attribute (for example via Plug.Conn.put_resp_cookie/4 when reflecting a username or preference) lets an attacker inject a ';' to append or override cookie attributes (such as Domain and Path scope, or dropping the Secure and HttpOnly flags), enabling cookie tossing and session fixation. Carriage return, line feed, and null bytes are rejected by Plug.Conn header validation, so HTTP response splitting is not possible, but attribute injection through ';' is not prevented. This issue affects plug: from 0.1.0 before 1.16.6, from 1.17.0 before 1.17.4, from 1.18.0 before 1.18.5, from 1.19.0 before 1.19.5, from 1.20.0 before 1.20.3.
CVSS v4.0
Score 2.1low
Affected software
pkg:hex/plugcpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from improper neutralization of parameter delimiters (CWE-141) in the plug library for Elixir. Specifically, the Plug.Conn.Cookies.encode/2 function builds the Set-Cookie HTTP response header by directly inserting cookie values and attributes without sanitizing the ';' delimiter. This allows an attacker who can control cookie values or attributes (e.g., via Plug.Conn.put_resp_cookie/4) to inject additional cookie attributes or override existing ones, such as Domain, Path, Secure, or HttpOnly flags. Although carriage return, line feed, and null bytes are rejected, preventing HTTP response splitting, the injection of ';' is not prevented, enabling attribute injection attacks like cookie tossing and session fixation. Affected versions include all from 0.1.0 up to but not including 1.16.6, and from 1.17.0 up to but not including 1.17.4, 1.18.5, 1.19.5, and 1.20.3 respectively.
Potential Impact
An attacker able to inject or override HTTP cookie attributes can manipulate cookie scope and security settings, potentially enabling cookie tossing and session fixation attacks. This can undermine session integrity and security controls relying on cookie attributes. However, the vulnerability does not allow HTTP response splitting due to header validation rejecting CR, LF, and null bytes. The overall impact is limited by the requirement for attacker-controlled input in cookie values or attributes and the low CVSS score reflects this.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid placing untrusted or attacker-controlled data directly into cookie values or attributes. Validate and sanitize any input used in cookies to prevent injection of the ';' delimiter. Monitor vendor communications for patches or updates addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-06-23T12:29:02.507Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50ed8f68715ace439660a8
Added to database: 07/10/2026, 13:03:11 UTC
Last enriched: 07/10/2026, 13:17:37 UTC
Last updated: 08/24/2026, 10:52:10 UTC
Views: 90
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.