{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-40631 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-40631 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-40631 is a low-severity cross-site scripting vulnerability in Icewarp Mail Server, published on 16 May 2025. 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-2025-40631 and fix it if it is affected.\n\nWhat it is: CVE-2025-40631 is a low-severity cross-site scripting vulnerability in Icewarp Mail Server, published on 16 May 2025. 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-2025-40631 in the wild and no public exploit code.\n\nAffected product: Icewarp Mail Server. 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-2025-40631/ (Markdown: https://insights.sbomify.com/CVE-2025-40631/index.md)","id":"CVE-2025-40631","markdown":"https://insights.sbomify.com/CVE-2025-40631/index.md","name":"CVE-2025-40631","record":{"aliases":["GHSA-77wj-x762-6p2r"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"IceWarp Mail Server","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via Host header injection in IceWarp Mail Server, potentially leading to account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"INCIBE","cpe":[{"product":"mail_server","vendor":"icewarp"}],"cvss":{"score":2,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:A/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-644","name":"Improper Neutralization of HTTP Headers for Scripting Syntax"}],"description":"HTTP host header injection vulnerability in Icewarp Mail Server affecting version 11.4.0. By modifying the Host header and adding a payload, arbitrary JavaScript code can be executed on page load. The user must interact with a malicious link to be redirected.","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":"HTTP host header injection vulnerability in IceWarp Mail Server","id":"CVE-2025-40631","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Cross-site scripting (XSS) vulnerability in IceWarp Mail Server","id":"CVE-2025-40632"},"packages":[],"prev":{"headline":"Open redirection vulnerability in IceWarp Mail Server","id":"CVE-2025-40630"},"products":["Icewarp Mail Server"],"published":"2025-05-16","related":[{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2023-39699","kev_date_added":null,"published":"2023-08-24"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2020-14066","kev_date_added":null,"published":"2020-07-15"},{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2019-12593","kev_date_added":null,"published":"2019-06-03"},{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2015-1503","kev_date_added":null,"published":"2018-05-08"},{"cvss_score":6.5,"headline":"Missing authorization in n/a","id":"CVE-2020-14064","kev_date_added":null,"published":"2020-07-15"},{"cvss_score":6.5,"headline":"File upload in n/a","id":"CVE-2020-14065","kev_date_added":null,"published":"2020-07-15"},{"cvss_score":6.4,"headline":"XML external entity in n/a","id":"CVE-2011-3579","kev_date_added":null,"published":"2011-09-30"}],"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":"partial"},"state":"PUBLISHED","updated":"2025-05-16","vendors":["Icewarp"]},"summary":"Attackers can execute arbitrary JavaScript via Host header injection in IceWarp Mail Server, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2025-40631/"}