{"answers":{"affected":"3 open source packages ship an affected version, including badkeys. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21439 exists.","fix":"Upgrade badkeys to 0.0.16 or later.","what":"CVE-2026-21439 is a low-severity vulnerability in badkeys, published on 5 Jan 2026."},"fix_prompt":"Check this codebase for CVE-2026-21439 and fix it if it is affected.\n\nWhat it is: CVE-2026-21439 is a low-severity vulnerability in badkeys, published on 5 Jan 2026. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21439 exists.\n\nAffected packages and fixed versions:\n- badkeys (PyPI): affected all versions; fixed in 0.0.16\n- badkeys (PyPI): affected all versions; fixed in 0.0.16\n- badkeys (PyPI): affected all versions; fixed in 0.0.16\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-21439/ (Markdown: https://insights.sbomify.com/CVE-2026-21439/index.md)","id":"CVE-2026-21439","markdown":"https://insights.sbomify.com/CVE-2026-21439/index.md","name":"CVE-2026-21439","record":{"aliases":["GHSA-wjpc-4f29-83h3","PYSEC-2026-1212"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"badkeys","vendor":"badkeys"}],"cvss":{"score":2,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"description":"badkeys is a tool and library for checking cryptographic public keys for known vulnerabilities. In versions 0.0.15 and below, an attacker may inject content with ASCII control characters like vertical tabs, ANSI escape sequences, etc., that can create misleading output of the badkeys command-line tool. This impacts scanning DKIM keys (both --dkim and --dkim-dns), SSH keys (--ssh-lines mode), and filenames in various modes. This issue is fixed in version 0.0.16.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"badkeys vulnerable to ASCII control character injection on console via malformed input","id":"CVE-2026-21439","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"AdonisJS Path Traversal in Multipart File Handling","id":"CVE-2026-21440"},"packages":[{"ecosystem":"PyPI","fixed":["0.0.16"],"introduced":["0"],"last_affected":[],"package":"badkeys","purl":null,"source":"GHSA-wjpc-4f29-83h3"},{"ecosystem":"PyPI","fixed":["0.0.16"],"introduced":["0"],"last_affected":[],"package":"badkeys","purl":"pkg:pypi/badkeys","source":"GHSA-wjpc-4f29-83h3"},{"ecosystem":"PyPI","fixed":["0.0.16"],"introduced":["0"],"last_affected":[],"package":"badkeys","purl":"pkg:pypi/badkeys","source":"PYSEC-2026-1212"}],"prev":{"headline":"webtransport-go affected by a Memory Exhaustion Attack due to Missing Cleanup of Streams Map","id":"CVE-2026-21438"},"products":["badkeys"],"published":"2026-01-05","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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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-01-06","vendors":["badkeys"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-21439/"}