{"answers":{"affected":"3 open source packages ship an affected version, including mint.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48861 exists.","fix":"Upgrade mint to 1.9.0 or later.","what":"CVE-2026-48861 is a low-severity vulnerability in elixir-mint mint, published on 2 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-48861 and fix it if it is affected.\n\nWhat it is: CVE-2026-48861 is a low-severity vulnerability in elixir-mint mint, published on 2 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-48861 exists.\n\nAffected packages and fixed versions:\n- mint (Hex): affected all versions; fixed in 1.9.0\n- mint (Hex): affected all versions; fixed in 1.9.0\n- mint (Hex): affected from 0.1.0; fixed in 1.9.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-48861/ (Markdown: https://insights.sbomify.com/CVE-2026-48861/index.md)","id":"CVE-2026-48861","markdown":"https://insights.sbomify.com/CVE-2026-48861/index.md","name":"CVE-2026-48861","record":{"aliases":["EEF-CVE-2026-48861","GHSA-2pg6-44cx-c49v"],"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 HTTP request lines via unvalidated method fields, enabling request smuggling and header injection in applications using the Mint library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[],"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:N/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 elixir-mint Mint allows HTTP Request Splitting and HTTP Request Smuggling.\n\nIn lib/mint/http1/request.ex, the encode_request_line/2 function splices the caller-supplied method and target arguments directly into the HTTP/1 request line without any character validation: [method, ?\\s, target, \" HTTP/1.1\\r\\n\"]. An application that forwards attacker-controlled input as the HTTP method or target to Mint.HTTP.request/5 is therefore exposed to request-line CRLF injection: the attacker can terminate the request line early, inject arbitrary headers, and smuggle an entirely separate pipelined HTTP request onto the same TCP connection.\n\nMint 1.7.0 introduced validate_request_target/2, which rejects CRLF and other control characters in the target by default and closes the path/query vector unless the caller opts out via skip_target_validation: true. The method field remains unvalidated, so the method-based injection is exploitable under the default Mint configuration on all versions.\n\nThis issue affects mint: from 0.1.0 before 1.9.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":"CRLF injection in HTTP/1 request line via unvalidated method in Mint","id":"CVE-2026-48861","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"other","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Unbounded conn.streams growth in Mint HTTP/2 client via unenforced PUSH_PROMISE concurrency","id":"CVE-2026-48862"},"packages":[{"ecosystem":"Hex","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"mint","purl":null,"source":"GHSA-2pg6-44cx-c49v"},{"ecosystem":"Hex","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"mint","purl":"pkg:hex/mint","source":"GHSA-2pg6-44cx-c49v"},{"ecosystem":"Hex","fixed":["1.9.0"],"introduced":["0.1.0"],"last_affected":[],"package":"mint","purl":"pkg:hex/mint","source":"EEF-CVE-2026-48861"}],"prev":{"headline":"Distribution-over-TLS LAN allowlist silently bypassed due to sockname/peername confusion in inet_tls_dist","id":"CVE-2026-48860"},"products":["mint"],"published":"2026-06-02","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":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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-02","vendors":["elixir-mint"]},"summary":"Attackers can inject CRLF sequences into HTTP request lines via unvalidated method fields, enabling request smuggling and header injection in applications using the Mint library.","url":"https://insights.sbomify.com/CVE-2026-48861/"}