{"answers":{"affected":"2 open source packages ship an affected version, including nodemailer.","exploited":"There is no known exploitation of CVE-2026-82854 in the wild and no public exploit code.","fix":"Upgrade nodemailer to 8.0.4 or later.","what":"CVE-2026-82854 is a critical command injection vulnerability in nodemailer, published on 31 Aug 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-82854 and fix it if it is affected.\n\nWhat it is: CVE-2026-82854 is a critical command injection vulnerability in nodemailer, published on 31 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-82854 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nodemailer (npm): affected all versions; fixed in 8.0.4\n- nodemailer (npm): affected all versions; fixed in 8.0.4\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-82854/ (Markdown: https://insights.sbomify.com/CVE-2026-82854/index.md)","id":"CVE-2026-82854","markdown":"https://insights.sbomify.com/CVE-2026-82854/index.md","name":"CVE-2026-82854","record":{"aliases":["CLEANSTART-2026-ME00447","DEBIAN-CVE-2026-82854","ECHO-25c2-edb1-76f4","GHSA-2x76-7hhq-pgvw","GHSA-c7w3-x93f-qmm8","MINI-6hmq-w944-cv5x","MINI-6mrf-vxvv-h8mm","MINI-8mgw-m6hx-pj48","MINI-9w3r-v4vr-qpmr","MINI-c2xw-q462-rr45","MINI-g974-p63q-2pjh","MINI-h777-j92c-3w8r","MINI-hjh9-px7x-9rp6","MINI-hxg7-pc3v-cqvm","MINI-jm4x-6jcp-x8q8","MINI-mc5h-p24q-3686","MINI-mhp3-6rr2-6467","MINI-pf3x-9v54-v88v","MINI-q92j-hh2p-757x","MINI-w6cc-xx9c-p8rf","MINI-wfcc-5jrq-6f9w","UBUNTU-CVE-2026-82854"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Node.js email library","requires_auth":"none","summary":"Attackers can inject SMTP commands via unsanitized envelope size, potentially adding unauthorized recipients if applications expose this parameter.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"Nodemailer before 8.0.4 is vulnerable to SMTP command injection through the unsanitized envelope.size parameter. When an application passes a custom envelope object with a size property containing CRLF characters to sendMail(), the value is concatenated into the SMTP MAIL FROM command (as SIZE=...) without sanitization, allowing injection of arbitrary SMTP commands such as RCPT TO to silently add attacker-controlled recipients. Exploitation requires the application to expose the envelope size to attacker-controlled input, as Nodemailer does not include size in the default auto-constructed envelope.","ecosystems":["npm"],"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":"Nodemailer before 8.0.4 SMTP Command Injection via envelope.size","id":"CVE-2026-82854","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"@hulumi/policies before 1.3.2 Evidence Validation Bypass","id":"CVE-2026-82855"},"packages":[{"ecosystem":"npm","fixed":["8.0.4"],"introduced":["0"],"last_affected":[],"package":"nodemailer","purl":null,"source":"GHSA-c7w3-x93f-qmm8"},{"ecosystem":"npm","fixed":["8.0.4"],"introduced":["0"],"last_affected":[],"package":"nodemailer","purl":"pkg:npm/nodemailer","source":"GHSA-c7w3-x93f-qmm8"}],"prev":{"headline":"Nodemailer before 8.0.5 SMTP Command Injection via CRLF","id":"CVE-2026-82853"},"products":["nodemailer"],"published":"2026-08-31","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["nodemailer"]},"summary":"Attackers can inject SMTP commands via unsanitized envelope size, potentially adding unauthorized recipients if applications expose this parameter.","url":"https://insights.sbomify.com/CVE-2026-82854/"}