{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2024-42009 in the wild since at least 9 Jun 2025.","fix":"Upgrade to a fixed version. US federal agencies must fix it by 30 Jun 2025.","what":"CVE-2024-42009 is a critical cross-site scripting vulnerability in Roundcube Webmail, published on 5 Aug 2024. 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-2024-42009 and fix it if it is affected.\n\nWhat it is: CVE-2024-42009 is a critical cross-site scripting vulnerability in Roundcube Webmail, published on 5 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: Yes. Attackers have exploited CVE-2024-42009 in the wild since at least 9 Jun 2025.\n\nAffected product: Roundcube Webmail. 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-42009/ (Markdown: https://insights.sbomify.com/CVE-2024-42009/index.md)","id":"CVE-2024-42009","markdown":"https://insights.sbomify.com/CVE-2024-42009/index.md","name":"CVE-2024-42009","record":{"aliases":["DEBIAN-CVE-2024-42009","GHSA-j43g-prf4-578j","UBUNTU-CVE-2024-42009","USN-7636-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Roundcube webmail","requires_auth":"none","summary":"Remote attackers can steal and send victim emails via crafted messages exploiting a sanitization flaw in Roundcube webmail.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"webmail","vendor":"roundcube"}],"cvss":{"score":9.3,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A Cross-Site Scripting vulnerability in Roundcube through 1.5.7 and 1.6.x through 1.6.7 allows a remote attacker to steal and send emails of a victim via a crafted e-mail message that abuses a Desanitization issue in message_body() in program/actions/mail/show.php.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-02-11","github_poc":6,"max_poc_stars":8,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-05-24T19:15:11Z","kind":"github_poc","ref":"https://github.com/DaniTheHack3r/CVE-2024-42009-PoC","stars":8,"title":"CVE-2024-42009 Proof of Concept"},{"date":"2025-02-11T23:02:42Z","kind":"github_poc","ref":"https://github.com/0xbassiouny1337/CVE-2024-42009","stars":4,"title":"This script exploits a stored XSS vulnerability (CVE-2024-42009) in Roundcube Webmail version 1.6.7. It injects a malicious payload into the webmail system, which, when triggered, exfiltrates email content from the victim’s inbox."},{"date":"2025-02-13T20:53:56Z","kind":"github_poc","ref":"https://github.com/Bhanunamikaze/CVE-2024-42009","stars":1,"title":"This Proof of Concept (PoC) demonstrates an exploit for CVE-2024-42009, leveraging a cross-site scripting (XSS) vulnerability to extract emails from a target webmail application. The attack injects a malicious payload that exfiltrates email content to an attacker-controlled listener."},{"date":"2026-04-16T14:03:05Z","kind":"github_poc","ref":"https://github.com/ZaidArif47/CVE-2024-42009","stars":1,"title":null},{"date":"2025-09-14T23:03:51Z","kind":"github_poc","ref":"https://github.com/Shubhankargupta691/CVE-2024-42009","stars":0,"title":null},{"date":"2026-06-17T20:58:51Z","kind":"github_poc","ref":"https://github.com/segunakinsoyinu/CVE-2024-42009-roundcube-xss","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-42009.yaml","stars":null,"title":"Roundcube Webmail - Cross-Site Scripting"}],"tier":"exploited"},"has_fix":true,"headline":"RoundCube Webmail Cross-Site Scripting","id":"CVE-2024-42009","indexable":true,"kev":{"dateAdded":"2025-06-09","dueDate":"2025-06-30","knownRansomwareCampaignUse":"Unknown","product":"Webmail","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Roundcube","vulnerabilityName":"RoundCube Webmail Cross-Site Scripting Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"roundcube:webmail","products":["roundcube:webmail"],"type":"xss","year":"2024"},"n_packages":0,"n_references":5,"next":{"headline":"Information disclosure in n/a","id":"CVE-2024-42010"},"packages":[],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2024-42008"},"products":["n/a"],"published":"2024-08-05","related":[{"cvss_score":7.2,"headline":"RoundCube Webmail Cross-site Scripting","id":"CVE-2025-68461","kev_date_added":"2026-02-20","published":"2025-12-18"},{"cvss_score":10,"headline":"PHPMailer susceptible to arbitrary code execution","id":"CVE-2008-5619","kev_date_added":null,"published":"2008-12-17"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2024-37385","kev_date_added":null,"published":"2024-06-07"},{"cvss_score":9.3,"headline":"Cross-site scripting in n/a","id":"CVE-2024-42008","kev_date_added":null,"published":"2024-08-05"},{"cvss_score":8.8,"headline":"Command injection in Webmail","id":"CVE-2026-74997","kev_date_added":null,"published":"2026-08-17"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2017-8114","kev_date_added":null,"published":"2017-04-29"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Remote attackers can steal and send victim emails via crafted messages exploiting a sanitization flaw in Roundcube webmail.","url":"https://insights.sbomify.com/CVE-2024-42009/"}