{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.httpcomponents.client5:httpclient5. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40542 in the wild and no public exploit code.","fix":"Upgrade org.apache.httpcomponents.client5:httpclient5 to 5.6.1 or later.","what":"CVE-2026-40542 is a high-severity authentication bypass vulnerability in Apache HttpClient, published on 22 Apr 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-40542 and fix it if it is affected.\n\nWhat it is: CVE-2026-40542 is a high-severity authentication bypass vulnerability in Apache HttpClient, published on 22 Apr 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-40542 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.httpcomponents.client5:httpclient5 (Maven): affected from 5.6-alpha1; fixed in 5.6.1\n- org.apache.httpcomponents.client5:httpclient5 (Maven): affected from 5.6-alpha1; fixed in 5.6.1\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-40542/ (Markdown: https://insights.sbomify.com/CVE-2026-40542/index.md)","id":"CVE-2026-40542","markdown":"https://insights.sbomify.com/CVE-2026-40542/index.md","name":"CVE-2026-40542","record":{"aliases":["ECHO-f0ba-e710-dc08","GHSA-v468-qcjx-r72w","MINI-4x4q-qm9w-jwm2","MINI-ggj3-5mjr-gg92","MINI-pj3f-g56v-g8fq","MINI-vxx8-m29v-f376","ROOT-APP-MAVEN-CVE-2026-40542","UBUNTU-CVE-2026-40542"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Java HTTP client library","requires_auth":"none","summary":"Attackers can bypass SCRAM-SHA-256 mutual authentication in Apache HttpClient, allowing clients to accept unverified server identities.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"httpclient","vendor":"apache"}],"cvss":{"score":7.3,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-325","name":"Missing Cryptographic Step"},{"id":"CWE-304","name":"Missing Critical Step in Authentication"}],"description":"Missing critical step in authentication in Apache HttpClient 5.6 allows an attacker to cause the client to accept SCRAM-SHA-256 authentication without proper mutual authentication verification. Users are recommended to upgrade to version 5.6.1, which fixes this issue.","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":"Apache HttpClient accepts SCRAM-SHA-256 authentication without proper mutual authentication verification","id":"CVE-2026-40542","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Missing Authorization in SOPlanning","id":"CVE-2026-40543"},"packages":[{"ecosystem":"Maven","fixed":["5.6.1"],"introduced":["5.6-alpha1"],"last_affected":[],"package":"org.apache.httpcomponents.client5:httpclient5","purl":null,"source":"GHSA-v468-qcjx-r72w"},{"ecosystem":"Maven","fixed":["5.6.1"],"introduced":["5.6-alpha1"],"last_affected":[],"package":"org.apache.httpcomponents.client5:httpclient5","purl":"pkg:maven/org.apache.httpcomponents.client5/httpclient5","source":"GHSA-v468-qcjx-r72w"}],"prev":{"headline":"Cross-site scripting in Synology Chat Server","id":"CVE-2026-40541"},"products":["Apache HttpClient"],"published":"2026-04-22","related":[{"cvss_score":9.8,"headline":"Hostname verification in Apache HttpClient 4.3 was disabled by default","id":"CVE-2013-4366","kev_date_added":null,"published":"2017-10-30"},{"cvss_score":9.1,"headline":"Apache HttpComponents Client: TLS hostname verification silently disabled on the async transport (default config, MITM)","id":"CVE-2026-71290","kev_date_added":null,"published":"2026-08-11"},{"cvss_score":7.5,"headline":"Apache HttpComponents: PSL (Public Suffix List) validation bypass","id":"CVE-2025-27820","kev_date_added":null,"published":"2025-04-24"},{"cvss_score":5.8,"headline":"Improper Certificate Validation in Apache Commons HttpClient","id":"CVE-2012-5783","kev_date_added":null,"published":"2012-11-04"},{"cvss_score":5.3,"headline":"Apache HttpComponents Client: Connection Leak on Content-Encoding Decode Error Leads to Pool Exhaustion DoS","id":"CVE-2026-64607","kev_date_added":null,"published":"2026-07-31"},{"cvss_score":5.3,"headline":"Cross-site scripting in Apache HttpClient","id":"CVE-2020-13956","kev_date_added":null,"published":"2020-12-02"}],"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-09-09","vendors":["Apache Software Foundation"]},"summary":"Attackers can bypass SCRAM-SHA-256 mutual authentication in Apache HttpClient, allowing clients to accept unverified server identities.","url":"https://insights.sbomify.com/CVE-2026-40542/"}