CVE-2026-56813 Details
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.1 before 1.19.5, and from 1.20.0 before 1.20.3.
A vulnerability in the Elixir Plug library allows for improper neutralization of parameter delimiters, enabling injection or modification of HTTP cookie attributes. The issue arises in the `Plug.Conn.Cookies.encode/2` function, which constructs the `Set-Cookie` header by directly inserting cookie values and attributes such as path, domain, and same_site without escaping the semicolon delimiter. This oversight permits the injection of additional attributes, potentially leading to cookie tossing and session fixation. The vulnerability affects Plug versions 0.1.0 prior to 1.16.6, 1.17.0 prior to 1.17.4, 1.18.0 prior to 1.18.5, 1.19.0 prior to 1.19.5, and 1.20.0 prior to 1.20.3.
Users can upgrade to Plug versions 1.16.6, 1.17.4, 1.18.5, 1.19.5, or 1.20.3, where this vulnerability has been patched. Alternatively, untrusted data can be validated to ensure it does not contain semicolons before being used in cookie attributes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 10, 2026CISA-ADP
Assessed Jul 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-141 | Improper Neutralization of Parameter/Argument Delimiters | EEF |
Affected Products
| Product | Versions |
|---|---|
| elixir-plug | >= 0.1.0, < 1.16.6 (semver) >= 1.17.0, < 1.17.4 (semver) >= 1.18.0, < 1.18.5 (semver) >= 1.19.0, < 1.19.5 (semver) >= 1.20.0, < 1.20.3 (semver) |
CPE
Remediation
| |
| elixir-plug plug | >= 0.1.0, < 1.16.6 (semver) >= 1.17.0, < 1.17.4 (semver) >= 1.18.0, < 1.18.5 (semver) >= 1.19.0, < 1.19.5 (semver) >= 1.20.0, < 1.20.3 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 24, 2026 | CVE Modified | EEF |
| Jul 10, 2026 | CVE Modified | CISA-ADP |
| Jul 10, 2026 | New CVE Received | EEF |
Volerion