{"answers":{"affected":"6 open source packages ship an affected version, including form-data.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12143 exists.","fix":"Upgrade form-data to a fixed version for your release line: 2.5.6, 3.0.5 or 4.0.6.","what":"CVE-2026-12143 is a high-severity vulnerability in form-data, published on 12 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-12143 and fix it if it is affected.\n\nWhat it is: CVE-2026-12143 is a high-severity vulnerability in form-data, published on 12 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12143 exists.\n\nAffected packages and fixed versions:\n- form-data (npm): affected all versions; fixed in 2.5.6\n- form-data (npm): affected all versions; fixed in 2.5.6\n- form-data (npm): affected from 3.0.0; fixed in 3.0.5\n- form-data (npm): affected from 3.0.0; fixed in 3.0.5\n- form-data (npm): affected from 4.0.0; fixed in 4.0.6\n- form-data (npm): affected from 4.0.0; fixed in 4.0.6\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-12143/ (Markdown: https://insights.sbomify.com/CVE-2026-12143/index.md)","id":"CVE-2026-12143","markdown":"https://insights.sbomify.com/CVE-2026-12143/index.md","name":"CVE-2026-12143","record":{"aliases":["AZL-90099","CLEANSTART-2026-FQ89941","CLEANSTART-2026-JF12177","CLEANSTART-2026-OW89546","CLSA-2026-1784856187","CLSA-2026-1784856461","CLSA-2026-1784943225","CLSA-2026-1784943288","CLSA-2026-1785117379","CLSA-2026-1785117388","CLSA-2026-1785117393","CLSA-2026-1785117455","CLSA-2026-1785117456","CLSA-2026-1792476103","DEBIAN-CVE-2026-12143","ECHO-f0b6-5440-14d8","GHSA-hmw2-7cc7-3qxx","MINI-35gg-8p6v-f454","MINI-4222-h4pw-pq48","MINI-5hf3-3cfg-p9h2","MINI-5hjm-38g8-m4j9","MINI-6276-q479-355q","MINI-64x9-33jf-rm7h","MINI-65r7-q98f-fvj3","MINI-6f79-q77g-57wq","MINI-724m-xfvf-6ggj","MINI-7g9j-rxpj-g8pf","MINI-7xrw-chfv-wmqx","MINI-9284-wgrx-6w3x","MINI-c5wm-3925-v7h3","MINI-cgrr-3x56-g4hp","MINI-cmhj-4mc3-96xq","MINI-cq93-52p9-264v","MINI-cvwf-63rp-p4cx","MINI-gc24-wqh2-4hr3","MINI-ghvg-r6v6-cfrh","MINI-gqx2-2c7c-77fm","MINI-gvrw-jj78-3cc9","MINI-h5fc-2f4h-2h5q","MINI-hc3h-vvf3-mxxh","MINI-hf43-cr4g-82pq","MINI-hfmq-cj4x-9pxf","MINI-hrjv-3c8f-pjmw","MINI-j2hq-8c4h-mcm9","MINI-j4jg-9j66-ch8w","MINI-j79w-53vh-3275","MINI-m8hg-4w27-fqj6","MINI-mr9v-27wm-fhmv","MINI-mx42-76g4-c32j","MINI-pg2h-5f42-7gm5","MINI-qphx-v5p6-67xj","MINI-qrmq-rx9f-9pwp","MINI-r3xw-jw67-p46f","MINI-rwjv-mrwc-xfmh","MINI-v6vh-9m43-wcj7","MINI-vj5w-fmxv-22p3","MINI-vwjf-r7wx-85rf","MINI-wfv8-52jw-487j","MINI-wgxp-rpxr-83wq","MINI-x6w5-47vj-pp4j","MINI-x944-wv4p-r7p2","ROOT-APP-NPM-CVE-2026-12143","UBUNTU-CVE-2026-12143"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Node.js form-data library","requires_auth":"none","summary":"Attackers can inject headers or smuggle parts via unescaped field names in form-data, potentially modifying downstream form data.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"harborist","cpe":[],"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:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"form-data is a library for creating readable multipart/form-data streams. In versions through 4.0.5, the `field` argument to `FormData#append` and the `filename` option are concatenated verbatim into the `Content-Disposition` header without escaping carriage return (CR), line feed (LF), or double-quote (\") characters. An application that passes attacker-controlled data as a field name or filename (for example, an API gateway that turns JSON object keys into multipart field names) allows the attacker to terminate the header line and inject additional headers, or to smuggle entire additional multipart parts, into the request the application forwards to a backend. This can let the attacker add or override form fields (e.g. set `is_admin=true`) seen by the downstream parser. This is an instance of CWE-93 (CRLF injection). The fix escapes CR, LF, and `\"` as `%0D`, `%0A`, and `%22` in field names and filenames, matching the serialization browsers use per the WHATWG HTML multipart/form-data encoding algorithm. Exploitation requires the consuming application to use untrusted input as a field name or filename; applications that use only fixed/trusted field names are not affected. Fixed in 2.5.6, 3.0.5, and 4.0.6.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"form-data does not escape CR/LF/quote in multipart field names and filenames (CRLF injection)","id":"CVE-2026-12143","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2026"},"n_packages":6,"n_references":7,"next":{"headline":"Wholesale for WooCommerce \u003c= 2.0.5 - Authenticated (Author+) Privilege Escalation via 'user_role_set' Parameter","id":"CVE-2026-12144"},"packages":[{"ecosystem":"npm","fixed":["2.5.6"],"introduced":["0"],"last_affected":[],"package":"form-data","purl":null,"source":"GHSA-hmw2-7cc7-3qxx"},{"ecosystem":"npm","fixed":["2.5.6"],"introduced":["0"],"last_affected":[],"package":"form-data","purl":"pkg:npm/form-data","source":"GHSA-hmw2-7cc7-3qxx"},{"ecosystem":"npm","fixed":["3.0.5"],"introduced":["3.0.0"],"last_affected":[],"package":"form-data","purl":null,"source":"GHSA-hmw2-7cc7-3qxx"},{"ecosystem":"npm","fixed":["3.0.5"],"introduced":["3.0.0"],"last_affected":[],"package":"form-data","purl":"pkg:npm/form-data","source":"GHSA-hmw2-7cc7-3qxx"},{"ecosystem":"npm","fixed":["4.0.6"],"introduced":["4.0.0"],"last_affected":[],"package":"form-data","purl":null,"source":"GHSA-hmw2-7cc7-3qxx"},{"ecosystem":"npm","fixed":["4.0.6"],"introduced":["4.0.0"],"last_affected":[],"package":"form-data","purl":"pkg:npm/form-data","source":"GHSA-hmw2-7cc7-3qxx"}],"prev":{"headline":"NEX-Forms \u003c= 9.2.2 - Unauthenticated Stored Cross-Site Scripting via '_name[]' Array Parameter","id":"CVE-2026-12142"},"products":["form-data"],"published":"2026-06-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-11","vendors":["form-data"]},"summary":"Attackers can inject headers or smuggle parts via unescaped field names in form-data, potentially modifying downstream form data.","url":"https://insights.sbomify.com/CVE-2026-12143/"}