{"answers":{"affected":"10 open source packages ship an affected version, including org.springframework.kafka:spring-kafka. It affects 3 products.","exploited":"There is no known exploitation of CVE-2026-41731 in the wild and no public exploit code.","fix":"Upgrade org.springframework.kafka:spring-kafka to a fixed version for your release line: 3.3.16 or 4.0.6.","what":"CVE-2026-41731 is a high-severity unsafe deserialization vulnerability in Spring for Apache Kafka, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41731 and fix it if it is affected.\n\nWhat it is: CVE-2026-41731 is a high-severity unsafe deserialization vulnerability in Spring for Apache Kafka, published on 9 Jun 2026. 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-2026-41731 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.kafka:spring-kafka (Maven): affected all versions up to 2.8.11; no fix listed\n- org.springframework.kafka:spring-kafka (Maven): affected all versions up to 2.8.11; no fix listed\n- org.springframework.kafka:spring-kafka (Maven): affected from 2.9.0 up to 2.9.13; no fix listed\n- org.springframework.kafka:spring-kafka (Maven): affected from 2.9.0 up to 2.9.13; no fix listed\n- org.springframework.kafka:spring-kafka (Maven): affected from 3.2.0 up to 3.2.13; no fix listed\n- org.springframework.kafka:spring-kafka (Maven): affected from 3.2.0 up to 3.2.13; no fix listed\n- org.springframework.kafka:spring-kafka (Maven): affected from 3.3.0; fixed in 3.3.16\n- org.springframework.kafka:spring-kafka (Maven): affected from 3.3.0; fixed in 3.3.16\n- org.springframework.kafka:spring-kafka (Maven): affected from 4.0.0; fixed in 4.0.6\n- org.springframework.kafka:spring-kafka (Maven): affected from 4.0.0; fixed in 4.0.6\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-41731/ (Markdown: https://insights.sbomify.com/CVE-2026-41731/index.md)","id":"CVE-2026-41731","markdown":"https://insights.sbomify.com/CVE-2026-41731/index.md","name":"CVE-2026-41731","record":{"aliases":["GHSA-xq69-5h5v-x9x4","MINI-5q4c-qr79-rrqg","MINI-m6jw-pfrj-p7vx","ROOT-APP-MAVEN-CVE-2026-41731"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Kafka library","requires_auth":"none","summary":"Attackers can achieve remote code execution by exploiting overly broad trusted-package matching in Spring for Apache Kafka header mappers.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"fuse","vendor":"redhat"},{"product":"jboss_enterprise_application_platform_expansion_pack","vendor":"redhat"},{"product":"spring_for_apache_kafka","vendor":"vmware"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Combined with Jackson's default bean deserialization, a producer could supply crafted header values that caused the consumer to deserialize arbitrary JDK types.\n\nAffected versions:\nSpring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization","id":"CVE-2026-41731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":10,"n_references":1,"next":{"headline":"Spring for Apache Pulsar: JsonPulsarHeaderMapper Trusted-Package Prefix Check Allows Unintended Subpackage Deserialization","id":"CVE-2026-41732"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.8.11"],"package":"org.springframework.kafka:spring-kafka","purl":null,"source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.8.11"],"package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":[],"introduced":["2.9.0"],"last_affected":["2.9.13"],"package":"org.springframework.kafka:spring-kafka","purl":null,"source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":[],"introduced":["2.9.0"],"last_affected":["2.9.13"],"package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":[],"introduced":["3.2.0"],"last_affected":["3.2.13"],"package":"org.springframework.kafka:spring-kafka","purl":null,"source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":[],"introduced":["3.2.0"],"last_affected":["3.2.13"],"package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":["3.3.16"],"introduced":["3.3.0"],"last_affected":[],"package":"org.springframework.kafka:spring-kafka","purl":null,"source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":["3.3.16"],"introduced":["3.3.0"],"last_affected":[],"package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":["4.0.6"],"introduced":["4.0.0"],"last_affected":[],"package":"org.springframework.kafka:spring-kafka","purl":null,"source":"GHSA-xq69-5h5v-x9x4"},{"ecosystem":"Maven","fixed":["4.0.6"],"introduced":["4.0.0"],"last_affected":[],"package":"org.springframework.kafka:spring-kafka","purl":"pkg:maven/org.springframework.kafka/spring-kafka","source":"GHSA-xq69-5h5v-x9x4"}],"prev":{"headline":"Spring Data REST exposes persistence-layer internals in error responses","id":"CVE-2026-41730"},"products":["Spring for Apache Kafka"],"published":"2026-06-09","related":[{"cvss_score":7.5,"headline":"Undertow vulnerable to memory exhaustion due to buffer leak","id":"CVE-2021-3690","kev_date_added":null,"published":"2022-08-23"},{"cvss_score":7.4,"headline":"Misconfiguration in syndesis","id":"CVE-2019-14860","kev_date_added":null,"published":"2019-11-08"},{"cvss_score":6.4,"headline":"Fuse: privilege escalation via excessive /etc/passwd permissions","id":"CVE-2025-57849","kev_date_added":null,"published":"2026-03-13"},{"cvss_score":6.1,"headline":"Cross-site scripting in RESTEasy","id":"CVE-2020-10688","kev_date_added":null,"published":"2021-05-27"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-05","vendors":["Spring"]},"summary":"Attackers can achieve remote code execution by exploiting overly broad trusted-package matching in Spring for Apache Kafka header mappers.","url":"https://insights.sbomify.com/CVE-2026-41731/"}