CVE-2026-56813
Cookie attribute injection in Plug.Conn.Cookies.encode/2
Mitigation
- Upgrade plug to 1.20.3 or later.
- Vendor workaround: Validate or reject the ; delimiter in any untrusted data before passing it as a cookie value or attribute to Plug.Conn.put_resp_cookie/4 or Plug.Conn.Cookies.encode/2. Carriage return, line feed, and null bytes are already rejected by Plug.Conn header validation.
Who should check
- Anyone running elixir-plug plug >= 0.1.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3
- Anyone running elixir-plug plug >= f26876aa67aaeb38e616638aa3efbcc2fe2906a5, < *
Vulnerability facts
- Affected
- elixir-plug plug >= 0.1.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3; elixir-plug plug >= f26876aa67aaeb38e616638aa3efbcc2fe2906a5, < *
- Fixed in
- elixir-plug plug 1.16.6, elixir-plug plug 1.17.4, elixir-plug plug 1.18.5, elixir-plug plug 1.19.5, elixir-plug plug 1.20.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 2.1 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-141
- Modified
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, and from 1.20.0 before 1.20.3.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| elixir-plug plug | >= 0.1.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3 | — | cvelist |
| elixir-plug plug | >= f26876aa67aaeb38e616638aa3efbcc2fe2906a5, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-56813. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-56813.md Affected: elixir-plug plug >= 0.1.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3; elixir-plug plug >= f26876aa67aaeb38e616638aa3efbcc2fe2906a5, < * Fixed in: elixir-plug plug 1.16.6, elixir-plug plug 1.17.4, elixir-plug plug 1.18.5, elixir-plug plug 1.19.5, elixir-plug plug 1.20.3 Steps: 1. Search this machine and project for elixir-plug plug: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/elixir-plug/plug/commit/f26876aa67aaeb38e616638aa3efbcc2fe2906a5
- https://github.com/elixir-plug/plug/commit/149d9ed68fee0b4f77efd1e835ce5d785856697b
- https://github.com/elixir-plug/plug/commit/3f00dfad4e20ba88472e315c90a25742bf178f8e
- https://github.com/elixir-plug/plug/commit/4167981747fe9ce75f374b94a28861ae950ea992
- https://github.com/elixir-plug/plug/commit/a6d1248659022749869963fd302687165ecf8c8b
- https://github.com/elixir-plug/plug/commit/eceb8315ce9a31ef784943a95a8624ebd1bc7e06
FAQ
Is CVE-2026-56813 being exploited?
There is no confirmed exploitation: CVE-2026-56813 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-56813?
Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-56813?
elixir-plug plug >= 0.1.0, < 1.16.6; >= 1.17.0, < 1.17.4; >= 1.18.0, < 1.18.5; >= 1.19.0, < 1.19.5; >= 1.20.0, < 1.20.3; elixir-plug plug >= f26876aa67aaeb38e616638aa3efbcc2fe2906a5, < *.
Is there a fix for CVE-2026-56813?
Yes. Fixed in elixir-plug plug 1.16.6, elixir-plug plug 1.17.4, elixir-plug plug 1.18.5, elixir-plug plug 1.19.5, elixir-plug plug 1.20.3. Upgrade plug to 1.20.3 or later. Vendor workaround: Validate or reject the ; delimiter in any untrusted data before passing it as a cookie value or attribute to Plug.Conn.put_resp_cookie/4 or Plug.Conn.Cookies.encode/2. Carriage return, line feed, and null bytes are already rejected by Plug.Conn header validation.
How do I check if I'm affected by CVE-2026-56813?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.