{"answers":{"affected":"10 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-config-server. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40981 in the wild and no public exploit code.","fix":"Upgrade org.springframework.cloud:spring-cloud-config-server to a fixed version for your release line: 4.3.3 or 5.0.3.","what":"CVE-2026-40981 is a high-severity vulnerability in Spring Cloud Config, published on 7 May 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-40981 and fix it if it is affected.\n\nWhat it is: CVE-2026-40981 is a high-severity vulnerability in Spring Cloud Config, published on 7 May 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-40981 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 3.1.0 up to 3.1.13; no fix listed\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 3.1.0 up to 3.1.13; no fix listed\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 4.1.0 up to 4.1.9; no fix listed\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 4.1.0 up to 4.1.9; no fix listed\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 4.2.0 up to 4.2.6; no fix listed\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 4.2.0 up to 4.2.6; no fix listed\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 4.3.0; fixed in 4.3.3\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 4.3.0; fixed in 4.3.3\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 5.0.0; fixed in 5.0.3\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 5.0.0; fixed in 5.0.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-2026-40981/ (Markdown: https://insights.sbomify.com/CVE-2026-40981/index.md)","id":"CVE-2026-40981","markdown":"https://insights.sbomify.com/CVE-2026-40981/index.md","name":"CVE-2026-40981","record":{"aliases":["GHSA-2mh5-3cw6-hrrq","ROOT-APP-MAVEN-CVE-2026-40981"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Cloud Config","requires_auth":"none","summary":"Attackers can expose secrets from unintended GCP projects when using Google Secrets Manager backend in Spring Cloud Config.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"spring_cloud_config","vendor":"vmware"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-1220","name":"Insufficient Granularity of Access Control"},{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"description":"When using Google Secrets Manager as a backend for the Spring Cloud Config server a client can craft a request to the config server potentially exposing secrets from unintended GCP projects.\nSpring Cloud Config 3.1.x: affected from 3.1.0 through 3.1.13 (inclusive); upgrade to 3.1.14 or greater (Enterprise Support Only). Spring Cloud Config 4.1.x: affected from 4.1.0 through 4.1.9 (inclusive); upgrade to 4.1.10 or greater (Enterprise Support Only). Spring Cloud Config 4.2.x: affected from 4.2.0 through 4.2.6 (inclusive); upgrade to 4.2.7 or greater (Enterprise Support Only). Spring Cloud Config 4.3.x: affected from 4.3.0 through 4.3.2 (inclusive); upgrade to 4.3.3 or greater. Spring Cloud Config 5.0.x: affected from 5.0.0 through 5.0.2 (inclusive); upgrade to 5.0.3 or greater.","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":"Spring Cloud Config has an Authorization Bypass Through User-Controlled Key","id":"CVE-2026-40981","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":10,"n_references":1,"next":{"headline":"Spring Cloud Config vulnerable to Path Traversal","id":"CVE-2026-40982"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["3.1.0"],"last_affected":["3.1.13"],"package":"org.springframework.cloud:spring-cloud-config-server","purl":null,"source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":[],"introduced":["3.1.0"],"last_affected":["3.1.13"],"package":"org.springframework.cloud:spring-cloud-config-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server","source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":[],"introduced":["4.1.0"],"last_affected":["4.1.9"],"package":"org.springframework.cloud:spring-cloud-config-server","purl":null,"source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":[],"introduced":["4.1.0"],"last_affected":["4.1.9"],"package":"org.springframework.cloud:spring-cloud-config-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server","source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":[],"introduced":["4.2.0"],"last_affected":["4.2.6"],"package":"org.springframework.cloud:spring-cloud-config-server","purl":null,"source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":[],"introduced":["4.2.0"],"last_affected":["4.2.6"],"package":"org.springframework.cloud:spring-cloud-config-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server","source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":["4.3.3"],"introduced":["4.3.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":null,"source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":["4.3.3"],"introduced":["4.3.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server","source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":null,"source":"GHSA-2mh5-3cw6-hrrq"},{"ecosystem":"Maven","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server","source":"GHSA-2mh5-3cw6-hrrq"}],"prev":{"headline":"Spring AI Vulnerable to OOM by attacker-controlled PDF","id":"CVE-2026-40980"},"products":["Spring Cloud Config"],"published":"2026-05-07","related":[{"cvss_score":7.5,"headline":"VMware Tanzu Spring Cloud Config Directory Traversal","id":"CVE-2020-5410","kev_date_added":"2022-03-25","published":"2020-06-02"},{"cvss_score":9.1,"headline":"Spring Cloud Config vulnerable to Path Traversal","id":"CVE-2026-40982","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":8.6,"headline":"Spring Cloud Config Profile Substitution Can Allow Unintended Access To Files And Enable SSRF Attacks","id":"CVE-2026-22739","kev_date_added":null,"published":"2026-03-24"},{"cvss_score":7.4,"headline":"Spring Cloud Config Server Susceptible To TOCTOU Attack","id":"CVE-2026-41002","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":7.2,"headline":"Spring Cloud Config Server Susceptible To TOCTOU Attack When Using SVN","id":"CVE-2026-47836","kev_date_added":null,"published":"2026-08-26"},{"cvss_score":6.8,"headline":"Spring Cloud Config Server Monitor Endpoint Does Not Validate Webhook Requests","id":"CVE-2026-47837","kev_date_added":null,"published":"2026-08-26"}],"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["Spring"]},"summary":"Attackers can expose secrets from unintended GCP projects when using Google Secrets Manager backend in Spring Cloud Config.","url":"https://insights.sbomify.com/CVE-2026-40981/"}