{"answers":{"affected":"2 open source packages ship an affected version, including io.vertx:vertx-web. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-12540 in the wild and no public exploit code.","fix":"Upgrade io.vertx:vertx-web to 3.5.3 or later.","what":"CVE-2018-12540 is a high-severity vulnerability in The Eclipse Foundation Eclipse Vert.x, published on 12 Jul 2018. 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-2018-12540 and fix it if it is affected.\n\nWhat it is: CVE-2018-12540 is a high-severity vulnerability in The Eclipse Foundation Eclipse Vert.x, published on 12 Jul 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-12540 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.vertx:vertx-web (Maven): affected from 3.0.0; fixed in 3.5.3\n- io.vertx:vertx-web (Maven): affected from 3.0.0; fixed in 3.5.3\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-2018-12540/ (Markdown: https://insights.sbomify.com/CVE-2018-12540/index.md)","id":"CVE-2018-12540","markdown":"https://insights.sbomify.com/CVE-2018-12540/index.md","name":"CVE-2018-12540","record":{"aliases":["GHSA-rvgg-f8qm-6h7j"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Java web framework","requires_auth":"none","summary":"Attackers can bypass CSRF protections in Eclipse Vert.x by replaying valid tokens, potentially allowing unauthorized actions on behalf of users.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"eclipse","cpe":[{"product":"vert.x","vendor":"eclipse"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"In version from 3.0.0 to 3.5.2 of Eclipse Vert.x, the CSRFHandler do not assert that the XSRF Cookie matches the returned XSRF header/form parameter. This allows replay attacks with previously issued tokens which are not expired yet.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2018-06-15","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-06-15T08:46:31Z","kind":"github_poc","ref":"https://github.com/bernard-wagner/vertx-web-xsrf","stars":0,"title":"Vert.X CSRF Proof of Concept (CVE-2018-12540)"},{"date":"2018-11-19T11:41:16Z","kind":"github_poc","ref":"https://github.com/tafamace/CVE-2018-12540","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"High severity vulnerability that affects io.vertx:vertx-web","id":"CVE-2018-12540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"csrf","year":"2018"},"n_packages":2,"n_references":6,"next":{"headline":"Excessive memory allocation","id":"CVE-2018-12541"},"packages":[{"ecosystem":"Maven","fixed":["3.5.3"],"introduced":["3.0.0"],"last_affected":[],"package":"io.vertx:vertx-web","purl":null,"source":"GHSA-rvgg-f8qm-6h7j"},{"ecosystem":"Maven","fixed":["3.5.3"],"introduced":["3.0.0"],"last_affected":[],"package":"io.vertx:vertx-web","purl":"pkg:maven/io.vertx/vertx-web","source":"GHSA-rvgg-f8qm-6h7j"}],"prev":{"headline":"Missing authorization in Eclipse OpenJ9","id":"CVE-2018-12539"},"products":["Eclipse Vert.x"],"published":"2018-07-12","related":[{"cvss_score":9.8,"headline":"Path Traversal in Eclipse Vert","id":"CVE-2019-17640","kev_date_added":null,"published":"2020-10-15"},{"cvss_score":9.8,"headline":"Eclipse Vert.x does not properly neutralize '' (forward slashes) sequences that can resolve to an external location","id":"CVE-2018-12542","kev_date_added":null,"published":"2018-10-10"},{"cvss_score":9.8,"headline":"Moderate severity vulnerability that affects io.vertx:vertx-core","id":"CVE-2018-12544","kev_date_added":null,"published":"2018-10-10"},{"cvss_score":9.2,"headline":"Deserialization in Eclipse Vert.x","id":"CVE-2026-102469","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":8.7,"headline":"Denial of service in Eclipse Vert.x","id":"CVE-2026-102461","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":8.7,"headline":"Denial of service in Eclipse Vert.x","id":"CVE-2026-102467","kev_date_added":null,"published":"2026-10-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["The Eclipse Foundation"]},"summary":"Attackers can bypass CSRF protections in Eclipse Vert.x by replaying valid tokens, potentially allowing unauthorized actions on behalf of users.","url":"https://insights.sbomify.com/CVE-2018-12540/"}