{"answers":{"affected":"1 open source package ship an affected version, including CGI.","exploited":"There is no known exploitation of CVE-2026-120640 in the wild and no public exploit code.","exposure":"","fix":"Upgrade CGI to 5.00 or later.","what":"CVE-2026-120640 is a medium-severity vulnerability in CGI, published on 3 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-120640 and fix it if it is affected.\n\nWhat it is: CVE-2026-120640 is a medium-severity vulnerability in CGI, published on 3 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-120640 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- CGI (cpan): affected all versions; fixed in 5.00\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-120640/ (Markdown: https://insights.sbomify.com/CVE-2026-120640/index.md)","id":"CVE-2026-120640","markdown":"https://insights.sbomify.com/CVE-2026-120640/index.md","name":"CVE-2026-120640","record":{"aliases":["AZL-112807","DEBIAN-CVE-2026-120640","DHI-7wxi-ae7x-kkfj-fu2e","GHSA-2xpc-hf7c-cgvh","UBUNTU-CVE-2026-120640"],"analysis":null,"analysis_generated_by":null,"assigner":"CPANSec","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"CGI versions before 5.00 for Perl allow the POSTDATA, PUTDATA, PATCHDATA and XForms:Model parameters to be set from the query string or form fields.\n\nCGI stores a non-form request body under POSTDATA, PUTDATA or PATCHDATA, and an XForms body under XForms:Model, but also accepts these names from the query string, a form field or a multipart part, so an application cannot tell a client-sent value from the real body.\n\nA cross-site HTML form can post POSTDATA={\"admin\":true} to an endpoint that reads JSON from param('POSTDATA'), a request forgery that needs no CORS preflight.","ecosystems":["cpan"],"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":"CGI versions before 5.00 for Perl allow the POSTDATA, PUTDATA, PATCHDATA and XForms:Model parameters to be set from the query string or form fields.","id":"CVE-2026-120640","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"cpan","product":null,"products":[],"type":null,"year":"2026"},"n_packages":1,"n_references":3,"n_vendor_status":4,"next":{"headline":"CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths.","id":"CVE-2026-120641"},"nickname":null,"packages":[{"ecosystem":"cpan","fixed":["5.00"],"introduced":["0"],"last_affected":[],"name_kind":null,"package":"CGI","purl":"pkg:cpan/CGI","purl_source":"cna","scope":"upstream","source":"CVE-2026-120640"}],"prev":{"headline":"CGI versions before 5.00 for Perl allow HTTP header injection via entity decoding after the newline check in header and unchecked values in","id":"CVE-2026-120639"},"products":[],"published":"2026-11-03","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"partial"},"state":"PUBLISHED","updated":"2026-11-09","vendor_status":[{"n_packages":1,"name":"Red Hat","packages":[{"detail":"Fix deferred","name":"perl-CGI","name_kind":"source","purl":"pkg:rpm/redhat/perl-CGI?distro=rhel-8","sources":["redhat-vex"],"status":"deferred"}],"release":"8","scope":"distro","status":"deferred","statuses":{"deferred":1},"vendor":"redhat"},{"n_packages":1,"name":"Red Hat","packages":[{"detail":"Fix deferred","name":"perl-CGI","name_kind":"source","purl":"pkg:rpm/redhat/perl-CGI?distro=rhel-9","sources":["redhat-vex"],"status":"deferred"}],"release":"9","scope":"distro","status":"deferred","statuses":{"deferred":1},"vendor":"redhat"},{"n_packages":1,"name":"Red Hat","packages":[{"detail":"Fix deferred","name":"perl-CGI","name_kind":"source","purl":"pkg:rpm/redhat/perl-CGI?distro=rhel-10","sources":["redhat-vex"],"status":"deferred"}],"release":"10","scope":"distro","status":"deferred","statuses":{"deferred":1},"vendor":"redhat"},{"n_packages":1,"name":"Red Hat","packages":[{"detail":"Fix deferred","name":"perl-CGI","name_kind":"source","purl":"pkg:rpm/redhat/perl-CGI?distro=rhel-7","sources":["redhat-vex"],"status":"deferred"}],"release":"els/7","scope":"distro","status":"deferred","statuses":{"deferred":1},"vendor":"redhat"}],"vendors":[]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-120640/"}