{"answers":{"affected":"3 open source packages ship an affected version, including req. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49756 exists.","fix":"Upgrade req to 0.6.0 or later.","what":"CVE-2026-49756 is a low-severity vulnerability in wojtekmach req, published on 8 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49756 and fix it if it is affected.\n\nWhat it is: CVE-2026-49756 is a low-severity vulnerability in wojtekmach req, published on 8 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49756 exists.\n\nAffected packages and fixed versions:\n- req (Hex): affected from 0.5.3; fixed in 0.6.0\n- req (Hex): affected from 0.5.3; fixed in 0.6.0\n- req (Hex): affected from 0.5.3; fixed in 0.6.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-49756/ (Markdown: https://insights.sbomify.com/CVE-2026-49756/index.md)","id":"CVE-2026-49756","markdown":"https://insights.sbomify.com/CVE-2026-49756/index.md","name":"CVE-2026-49756","record":{"aliases":["EEF-CVE-2026-49756","GHSA-px9f-whj3-246m"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Elixir HTTP client","requires_auth":"none","summary":"Attackers can inject CRLF sequences into multipart form data via Req, allowing header injection and part smuggling in outgoing requests.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"req","vendor":"wojtekmach"}],"cvss":{"score":2.1,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in wojtekmach Req allows multipart parameter smuggling via attacker-influenced part metadata.\n\nReq.Utils.encode_form_part/2 in lib/req/utils.ex builds the per-part headers by interpolating the caller-supplied name, filename, and content_type values directly into the content-disposition and content-type lines with no escaping or CRLF stripping. A value containing \", \\r, or \\n closes the surrounding quoted value and starts a new header line; an additional \\r\\n--\u003cboundary\u003e terminates the current part and prepends a smuggled part of the attacker's choosing.\n\nThis is reachable through every supported way of supplying a part. It is particularly easy when value is a %File.Stream{}, because filename then defaults to Path.basename(stream.path) and POSIX filenames may legitimately contain \\r and \\n. Any application that forwards user-controlled filenames (or field names / MIME types) through Req.post/2 with form_multipart: lets an attacker inject arbitrary headers into the outgoing multipart body or smuggle additional fields and parts into the request the victim service sends downstream.\n\nThis issue affects req: from 0.5.3 before 0.6.0.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Multipart form-data header injection in Req via unescaped name/filename/content_type","id":"CVE-2026-49756","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"other","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"OAuth2/OIDC account takeover in AshAuthentication via email-based user matching","id":"CVE-2026-49757"},"packages":[{"ecosystem":"Hex","fixed":["0.6.0"],"introduced":["0.5.3"],"last_affected":[],"package":"req","purl":"pkg:hex/req","source":"EEF-CVE-2026-49756"},{"ecosystem":"Hex","fixed":["0.6.0"],"introduced":["0.5.3"],"last_affected":[],"package":"req","purl":null,"source":"GHSA-px9f-whj3-246m"},{"ecosystem":"Hex","fixed":["0.6.0"],"introduced":["0.5.3"],"last_affected":[],"package":"req","purl":"pkg:hex/req","source":"GHSA-px9f-whj3-246m"}],"prev":{"headline":"Decompression bomb DoS in Req via auto-decoded archive and compressed response bodies","id":"CVE-2026-49755"},"products":["req"],"published":"2026-06-08","related":[{"cvss_score":8.2,"headline":"Decompression bomb DoS in Req via auto-decoded archive and compressed response bodies","id":"CVE-2026-49755","kev_date_added":null,"published":"2026-06-08"}],"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":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-08","vendors":["wojtekmach"]},"summary":"Attackers can inject CRLF sequences into multipart form data via Req, allowing header injection and part smuggling in outgoing requests.","url":"https://insights.sbomify.com/CVE-2026-49756/"}