{"id":81799,"date":"2026-07-10T16:46:20","date_gmt":"2026-07-10T13:16:20","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-56813-cookie-attribute-injection-in-plug-conn-cookies-encode-2\/"},"modified":"2026-07-10T16:46:20","modified_gmt":"2026-07-10T13:16:20","slug":"cve-2026-56813-cookie-attribute-injection-in-plug-conn-cookies-encode-2","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-56813-cookie-attribute-injection-in-plug-conn-cookies-encode-2\/","title":{"rendered":"CVE-2026-56813 &#8211; Cookie attribute injection in Plug.Conn.Cookies.encode\/2"},"content":{"rendered":"<p>CVE ID :CVE-2026-56813<\/p>\n<p>  Published : July 10, 2026, 1:16 p.m. | 32\u00a0minutes ago<\/p>\n<p>  Description :Improper Neutralization of Parameter\/Argument Delimiters vulnerability in elixir-plug plug allows an attacker to inject or override HTTP cookie attributes.<\/p>\n<p>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 &#8216;;&#8217; delimiter that separates cookie attributes.<\/p>\n<p>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 &#8216;;&#8217; 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 &#8216;;&#8217; is not prevented.<\/p>\n<p>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.<\/p>\n<p>  Severity: 2.1 | LOW<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-56813 Published : July 10, 2026, 1:16 p.m. | 32\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81799","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81799"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81799\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}