{"answers":{"affected":"1 open source package ship an affected version, including cowlib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-113431 in the wild and no public exploit code.","exposure":"","fix":"Upgrade cowlib to 2.22.0 or later.","what":"CVE-2026-113431 is a high-severity vulnerability in ninenines cowlib, published on 6 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-113431 and fix it if it is affected.\n\nWhat it is: CVE-2026-113431 is a high-severity vulnerability in ninenines cowlib, published on 6 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-113431 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cowlib (Hex): affected from 2.7.0; fixed in 2.22.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-113431/ (Markdown: https://insights.sbomify.com/CVE-2026-113431/index.md)","id":"CVE-2026-113431","markdown":"https://insights.sbomify.com/CVE-2026-113431/index.md","name":"CVE-2026-113431","record":{"aliases":["AZL-113254","DEBIAN-CVE-2026-113431","EEF-CVE-2026-113431","GHSA-9jxc-cwfw-gpg8","UBUNTU-CVE-2026-113431"],"analysis":null,"analysis_generated_by":null,"assigner":"EEF","component":null,"cpe":[{"criteria":[{"cpe":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","source":"cna","version_end_excluding":"2.22.0","version_start_including":"2.7.0"}],"n_criteria":1,"name":"Cowlib","product":"cowlib","vendor":"ninenines"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowlib allows an unauthenticated remote peer to exhaust the memory of an HTTP/2 endpoint via HPACK-indexed header fields.\n\ncow_http2_machine:headers_decode/4 in src/cow_http2_machine.erl decodes every HEADERS block with cow_hpack:decode/3. It bounds the compressed block size and the number of fields, but not the size of the decoded header list that RFC 9113 section 6.5.2 places under SETTINGS_MAX_HEADER_LIST_SIZE. A peer stores one header value of up to the dynamic table size (4096 bytes by default) and then references it with one-byte indexed fields, so about 100 bytes on the wire decode to a header list of about 390 KB. A consumer that copies the decoded values, as Cowboy does when cowboy_http2:headers_to_map/2 joins repeated cookie fields into one binary, allocates that amount for every stream. The total across streams and connections is not bounded.\n\nThis issue affects cowlib: from 2.7.0 before 2.22.0.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Unbounded decoded HTTP/2 header-list size in cowlib cow_http2_machine enables HPACK amplification memory exhaustion","id":"CVE-2026-113431","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":["2.22.0"],"main_package":"cowlib","n_packages":1,"n_references":4,"n_vendor_status":1,"next":{"headline":"Quadratic bignum parsing of Content-Length and Host port values in Bandit","id":"CVE-2026-113436"},"nickname":null,"packages":[{"ecosystem":"Hex","fixed":["2.22.0"],"introduced":["2.7.0"],"last_affected":[],"name_kind":null,"package":"cowlib","purl":"pkg:hex/cowlib","purl_source":"advisory","scope":"upstream","source":"EEF-CVE-2026-113431"}],"prev":{"headline":"Gitea stored XSS through legacy Actions artifact Content-Encoding","id":"CVE-2026-113429"},"products":["cowlib"],"published":"2026-11-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-19","vendor_status":[{"n_packages":1,"name":"Upstream","packages":[{"fixed":["2.22.0"],"introduced":["2.7.0"],"name":"cowlib","purl":"pkg:hex/cowlib","sources":["EEF-CVE-2026-113431"],"status":"fixed"}],"release":null,"scope":"upstream","status":"fixed","statuses":{"fixed":1},"vendor":null}],"vendors":["ninenines"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-113431/"}