{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-9940 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-9940 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-9940 is a medium-severity cross-site scripting vulnerability in codepeople Calculated Fields Form, published on 17 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-9940 and fix it if it is affected.\n\nWhat it is: CVE-2024-9940 is a medium-severity cross-site scripting vulnerability in codepeople Calculated Fields Form, published on 17 Oct 2024. 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-2024-9940 in the wild and no public exploit code.\n\nAffected product: codepeople Calculated Fields Form. 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-2024-9940/ (Markdown: https://insights.sbomify.com/CVE-2024-9940/index.md)","id":"CVE-2024-9940","markdown":"https://insights.sbomify.com/CVE-2024-9940/index.md","name":"CVE-2024-9940","record":{"aliases":["GHSA-c8q2-82x8-w4xj"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"none","summary":"Unauthenticated attackers can inject HTML into form submissions, potentially leading to code execution or account takeover when administrators view emails.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[{"product":"calculated_fields_form","vendor":"codepeople"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-75","name":"Failure to Sanitize Special Elements into a Different Plane"}],"description":"The Calculated Fields Form plugin for WordPress is vulnerable to HTML Injection in all versions up to, and including, 5.2.45. This is due to the plugin not properly neutralizing HTML elements from submitted forms. This makes it possible for unauthenticated attackers to inject arbitrary HTML that will render when the administrator views form submissions in their email.","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":"Calculated Fields Form \u003c= 5.2.45 - HTML Injection","id":"CVE-2024-9940","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"WPGYM \u003c= 67.1.0 - Missing Authorization to Authenticated (Subscriber+) Privilege Escalation","id":"CVE-2024-9941"},"packages":[],"prev":{"headline":"WordPress File Upload \u003c= 4.24.13 - Unauthenticated Path Traversal to Arbitrary File Read in wfu_file_downloader.php","id":"CVE-2024-9939"},"products":["Calculated Fields Form"],"published":"2024-10-17","related":[{"cvss_score":7.2,"headline":"Calculated Fields Form Professional \u003c= 5.1.56 - Unauthenticated Stored Cross-Site Scripting","id":"CVE-2024-2020","kev_date_added":null,"published":"2024-03-13"},{"cvss_score":7.1,"headline":"WordPress Calculated Fields Form plugin \u003c= 1.2.54 - Reflected Cross Site Scripting (XSS) vulnerability","id":"CVE-2024-29759","kev_date_added":null,"published":"2024-03-27"},{"cvss_score":6.4,"headline":"Calculated Fields Form \u003c= 1.2.52 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2024-0963","kev_date_added":null,"published":"2024-02-02"},{"cvss_score":5.4,"headline":"Cross-site scripting in n/a","id":"CVE-2020-7228","kev_date_added":null,"published":"2020-01-22"},{"cvss_score":5.3,"headline":"Calculated Fields Form \u003c= 5.2.63 - Denial of Service","id":"CVE-2024-12601","kev_date_added":null,"published":"2024-12-17"},{"cvss_score":4.8,"headline":"Calculated Fields Form \u003c 5.2.64 - Admin+ Stored XSS","id":"CVE-2024-13382","kev_date_added":null,"published":"2025-05-15"}],"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-08","vendors":["codepeople"]},"summary":"Unauthenticated attackers can inject HTML into form submissions, potentially leading to code execution or account takeover when administrators view emails.","url":"https://insights.sbomify.com/CVE-2024-9940/"}