{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-5940 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-5940 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-5940 is a high-severity use after free vulnerability in Foxit Pdf Editor, published on 27 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-5940 and fix it if it is affected.\n\nWhat it is: CVE-2026-5940 is a high-severity use after free vulnerability in Foxit Pdf Editor, published on 27 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-5940 in the wild and no public exploit code.\n\nAffected product: Foxit Pdf Editor. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-5940/ (Markdown: https://insights.sbomify.com/CVE-2026-5940/index.md)","id":"CVE-2026-5940","markdown":"https://insights.sbomify.com/CVE-2026-5940/index.md","name":"CVE-2026-5940","record":{"aliases":["GHSA-gmwv-jpmc-ppqc"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PDF editor and reader","requires_auth":"none","summary":"Attackers can trigger a use-after-free via script to cause crashes or execute code in Foxit PDF Editor and Reader.","user_interaction":"required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Foxit","cpe":[{"product":"pdf_editor","vendor":"foxit"},{"product":"pdf_reader","vendor":"foxit"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"Calling a function that triggers a UI refresh after removing comments via a script may access an invalidated object, leading to program crashes.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Foxit PDF Editor/Reader Annotation Use-After-Free Remote Code Execution Vulnerability","id":"CVE-2026-5940","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"foxit:pdf_editor","products":["foxit:pdf_editor","foxit:pdf_reader"],"type":"use_after_free","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Foxit PDF Editor/Reader AcroForm Signature Remote Code Execution Vulnerability","id":"CVE-2026-5941"},"packages":[],"prev":{"headline":"UAF in Foxit PDF Editor/Reader via XFA calculate event","id":"CVE-2026-5939"},"products":["Foxit PDF Editor","Foxit PDF Reader"],"published":"2026-04-27","related":[{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2022-28104","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2022-24954","kev_date_added":null,"published":"2022-02-11"},{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-2022-24955","kev_date_added":null,"published":"2022-02-11"},{"cvss_score":8.8,"headline":"Foxit PDF Editor/Reader Updater Privilege Escalation","id":"CVE-2026-91798","kev_date_added":null,"published":"2026-09-23"},{"cvss_score":8.8,"headline":"Foxit PDF Editor installer local privilege escalation","id":"CVE-2026-91800","kev_date_added":null,"published":"2026-09-23"},{"cvss_score":8.8,"headline":"Security Vulnerability Report – Foxit PDF Editor/Reader Updater DLL Search Path Hijacking","id":"CVE-2026-91803","kev_date_added":null,"published":"2026-09-23"},{"cvss_score":8.8,"headline":"Foxit PDF Editor/Reader FoxitUpdater Race Condition Local Privilege Escalation Vulnerability","id":"CVE-2026-91813","kev_date_added":null,"published":"2026-09-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-28","vendors":["Foxit Software Inc."]},"summary":"Attackers can trigger a use-after-free via script to cause crashes or execute code in Foxit PDF Editor and Reader.","url":"https://insights.sbomify.com/CVE-2026-5940/"}