{"answers":{"affected":"2 open source packages ship an affected version, including electerm.","exploited":"There is no known exploitation of CVE-2026-49255 in the wild and no public exploit code.","fix":"Upgrade electerm to 3.11.11 or later.","what":"CVE-2026-49255 is a high-severity command injection vulnerability in electerm, published on 19 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-49255 and fix it if it is affected.\n\nWhat it is: CVE-2026-49255 is a high-severity command injection vulnerability in electerm, published on 19 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-49255 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- electerm (npm): affected all versions; fixed in 3.11.11\n- electerm (npm): affected all versions; fixed in 3.11.11\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-49255/ (Markdown: https://insights.sbomify.com/CVE-2026-49255/index.md)","id":"CVE-2026-49255","markdown":"https://insights.sbomify.com/CVE-2026-49255/index.md","name":"CVE-2026-49255","record":{"aliases":["GHSA-v5ff-xmfp-p245"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"electerm terminal client","requires_auth":"none","summary":"A malicious SSH or SFTP server can trigger arbitrary command execution in electerm via crafted filenames during file operations, allowing attackers to compromise the user's system.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to 3.11.11, electerm constructs operating system commands in src/app/lib/fs.js by interpolating untrusted file paths into the rmrf(), mv(), and cp() functions. A malicious SSH or SFTP server can provide a filename containing quote characters and shell metacharacters, and a victim can cause that filename to reach the affected operation during remote-to-local transfer, conflict renaming, copying, moving, or removal. The generated `rm -rf`, mv, `cp -r`, PowerShell Remove-Item, Move-Item, or Copy-Item command can then interpret the filename as shell syntax. This allows arbitrary command execution with the electerm desktop user's privileges on POSIX and Windows systems, enabling data exfiltration, file modification, malware installation, or denial of service. This issue is fixed in version 3.11.11.","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":"electerm: Command Injection in File System Operations (rmrf, mv, cp)","id":"CVE-2026-49255","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Discourse: Hidden tag names leaked via category serializers","id":"CVE-2026-49256"},"packages":[{"ecosystem":"npm","fixed":["3.11.11"],"introduced":["0"],"last_affected":[],"package":"electerm","purl":null,"source":"GHSA-v5ff-xmfp-p245"},{"ecosystem":"npm","fixed":["3.11.11"],"introduced":["0"],"last_affected":[],"package":"electerm","purl":"pkg:npm/electerm","source":"GHSA-v5ff-xmfp-p245"}],"prev":{"headline":"Dragonfly Manager OAuth provider client_secret disclosure via unauthenticated GET /api/v1/oauth","id":"CVE-2026-49254"},"products":["electerm"],"published":"2026-08-19","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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-25","vendors":["electerm"]},"summary":"A malicious SSH or SFTP server can trigger arbitrary command execution in electerm via crafted filenames during file operations, allowing attackers to compromise the user's system.","url":"https://insights.sbomify.com/CVE-2026-49255/"}