{"answers":{"affected":"3 open source packages ship an affected version, including k8s.io/ingress-nginx. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-4342 in the wild and no public exploit code.","fix":"Upgrade k8s.io/ingress-nginx to 0.0.0-20260319175635-5183b7d86137 or later.","what":"CVE-2026-4342 is a high-severity code injection vulnerability in Kubernetes ingress-nginx, published on 19 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-4342 and fix it if it is affected.\n\nWhat it is: CVE-2026-4342 is a high-severity code injection vulnerability in Kubernetes ingress-nginx, published on 19 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-4342 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- k8s.io/ingress-nginx (Go): affected all versions; fixed in 0.0.0-20260319175635-5183b7d86137\n- k8s.io/ingress-nginx (Go): affected all versions; fixed in 0.0.0-20260319175635-5183b7d86137\n- k8s.io/ingress-nginx (Go): affected all versions; fixed in 0.0.0-20260319175635-5183b7d86137\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-4342/ (Markdown: https://insights.sbomify.com/CVE-2026-4342/index.md)","id":"CVE-2026-4342","markdown":"https://insights.sbomify.com/CVE-2026-4342/index.md","name":"CVE-2026-4342","record":{"aliases":["GHSA-f53h-mxv9-cp98","GO-2026-4796"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes ingress controller","requires_auth":"low_privilege","summary":"Attackers can inject nginx configuration via Ingress annotations to execute arbitrary code and read cluster secrets in ingress-nginx.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[{"product":"nginx_ingress_controller","vendor":"kubernetes"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A security issue was discovered in ingress-nginx where a combination of Ingress annotations can be used to inject configuration into nginx. This can lead to arbitrary code execution in the context of the ingress-nginx controller, and disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.)","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2026-03-20","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-20T14:17:41Z","kind":"github_poc","ref":"https://github.com/stuartMoorhouse/CVE-2026-4342","stars":2,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"ingress-nginx comment-based nginx configuration injection","id":"CVE-2026-4342","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"Stored Cross-Site Scripting (XSS) Vulnerability in Assembly Component Name","id":"CVE-2026-4344"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20260319175635-5183b7d86137"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":null,"source":"GHSA-f53h-mxv9-cp98"},{"ecosystem":"Go","fixed":["0.0.0-20260319175635-5183b7d86137"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GHSA-f53h-mxv9-cp98"},{"ecosystem":"Go","fixed":["0.0.0-20260319175635-5183b7d86137"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GO-2026-4796"}],"prev":{"headline":"Prime Slider \u003c= 4.1.10 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'follow_us_text' Parameter","id":"CVE-2026-4341"},"products":["ingress-nginx"],"published":"2026-03-19","related":[{"cvss_score":5.3,"headline":"Kubernetes ingress exposes sensitive information","id":"CVE-2018-1002104","kev_date_added":null,"published":"2020-01-14"}],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-21","vendors":["Kubernetes"]},"summary":"Attackers can inject nginx configuration via Ingress annotations to execute arbitrary code and read cluster secrets in ingress-nginx.","url":"https://insights.sbomify.com/CVE-2026-4342/"}