{"answers":{"affected":"3 open source packages ship an affected version, including github.com/go-chi/chi/v5/middleware and github.com/go-chi/chi/v5.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-72815 exists.","fix":"Upgrade github.com/go-chi/chi/v5/middleware to 5.3.0 or later.","what":"CVE-2026-72815 is a medium-severity vulnerability in go-chi chi, published on 14 Aug 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-72815 and fix it if it is affected.\n\nWhat it is: CVE-2026-72815 is a medium-severity vulnerability in go-chi chi, published on 14 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-72815 exists.\n\nAffected packages and fixed versions:\n- github.com/go-chi/chi/v5/middleware (Go): affected from 5.2.1; fixed in 5.3.0\n- github.com/go-chi/chi/v5/middleware (Go): affected from 5.2.1; fixed in 5.3.0\n- github.com/go-chi/chi/v5 (Go): affected from 5.2.1; fixed in 5.3.0\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-72815/ (Markdown: https://insights.sbomify.com/CVE-2026-72815/index.md)","id":"CVE-2026-72815","markdown":"https://insights.sbomify.com/CVE-2026-72815/index.md","name":"CVE-2026-72815","record":{"aliases":["CLEANSTART-2026-CG94137","CLEANSTART-2026-SZ57384","CLEANSTART-2026-YO03060","DEBIAN-CVE-2026-72815","GHSA-3fxj-6jh8-hvhx","GHSA-qgxv-hqxp-4rcx","GO-2026-5774","MINI-245r-f3qp-vjrx","MINI-25hj-jxq4-xf74","MINI-272r-gcrw-386c","MINI-27xm-rffq-r6r5","MINI-2hrx-jhx3-qrh3","MINI-3254-r8wj-hqmr","MINI-33jj-2f73-wm3q","MINI-33q5-736w-r844","MINI-37qp-r32j-9r6g","MINI-3cpj-p96j-cx7x","MINI-3h9q-qcv3-wg65","MINI-3j3x-p8x2-cwrj","MINI-3jpj-26fw-j4j4","MINI-3wgj-55v3-p345","MINI-493x-j787-vp6m","MINI-4hmx-cvgh-748q","MINI-4j94-rmpx-4f95","MINI-4jr3-h2jx-g24p","MINI-4p5v-258g-hjxw","MINI-54p4-534f-87gw","MINI-5f72-26hr-jfqq","MINI-5whw-qcjm-qhvf","MINI-5xh8-j79x-294p","MINI-627c-6fwj-h329","MINI-64qf-g6vj-wxv4","MINI-65jw-3j45-5c74","MINI-67w7-f2v9-vqv6","MINI-68h9-9j92-89r4","MINI-6f72-54rw-pq35","MINI-6xjh-r333-25ww","MINI-749q-8fjv-3wq7","MINI-77vh-mh3j-p8g6","MINI-7846-cv77-74fr","MINI-7jr9-wcph-gf44","MINI-7mxr-px49-wm9x","MINI-7rgm-8w8h-f45g","MINI-82cf-9p9p-8jx2","MINI-84g2-q839-vqhf","MINI-8956-p9v2-c5fg","MINI-8cvj-xvmh-9jrm","MINI-8fm4-9qgh-49v9","MINI-8hmh-5fc2-55x6","MINI-8pwg-9vq5-4w8j","MINI-8w66-4cv5-35cr","MINI-8x8f-3vw5-j2c6","MINI-963g-gwhw-72v6","MINI-9845-4qh4-64wm","MINI-994w-77g5-9x6q","MINI-9xm3-f32j-32jr","MINI-9xwj-xv25-7mqq","MINI-c82v-w5hr-67gq","MINI-cffv-fx39-x3jr","MINI-f2h2-xrv2-59pj","MINI-fmf6-5v4f-rw3j","MINI-g543-f566-w55c","MINI-gfpg-3h32-6xww","MINI-gv77-g423-hwp2","MINI-hcxq-92w2-243g","MINI-hjcp-xx8m-xw5m","MINI-m846-mg2g-cpf9","MINI-mhcc-98h6-88c4","MINI-p7mr-q6cc-222m","MINI-p7w9-vc9w-jgv6","MINI-ph49-m2rh-gc4r","MINI-ph7r-6p73-fp36","MINI-ph9p-vrc9-pr87","MINI-pj24-42wr-rqfx","MINI-pm7f-cvv9-7mg9","MINI-pmj7-9ccf-2q44","MINI-q3gw-fqjv-4chg","MINI-q743-fr87-xh94","MINI-q763-93x8-g6j4","MINI-qv8r-mmhf-hjhp","MINI-qw8x-gq49-f3f9","MINI-r3m8-m7p4-h38j","MINI-r6jm-v4x9-5pfc","MINI-rpcr-rx38-p876","MINI-rvwg-jq7w-4q5r","MINI-vq65-99f5-q7j5","MINI-w3f2-xp35-7gvf","MINI-w5fp-24jq-wwgm","MINI-wfg8-h69w-3gfv","MINI-wp4q-cqqx-cg59","MINI-wq7r-qg3r-jrx6","MINI-wr9m-p3rr-4h3j","MINI-wrmq-v9f5-pwgr","MINI-x94r-w4r4-mjqp","MINI-xmmq-j7h7-82jw","MINI-xx2m-vh4w-c42f","UBUNTU-CVE-2026-72815","openSUSE-SU-2026:11607-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Go web router library","requires_auth":"none","summary":"Attackers can bypass IP-based access controls and rate limits by spoofing the X-Forwarded-For header in go-chi chi middleware.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"description":"go-chi chi versions \u003e= 5.2.1 and before 5.3.0 contain an IP spoofing vulnerability in the RealIP middleware, which blindly trusts the first (leftmost) value of the X-Forwarded-For HTTP header. A remote attacker can bypass IP-based access control lists and rate-limiting mechanisms, and forge log entries, by supplying a spoofed IP address in the X-Forwarded-For header. The issue is fixed in version 5.3.0.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2026-09-10","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-10T01:46:21Z","kind":"github_poc","ref":"https://github.com/Saku0512/CVE-2026-72815-poc","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header","id":"CVE-2026-72815","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":4,"n_references":2,"next":{"headline":"go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware","id":"CVE-2026-72816"},"packages":[{"ecosystem":"Go","fixed":["5.3.0"],"introduced":["5.2.1"],"last_affected":[],"package":"github.com/go-chi/chi/v5","purl":"pkg:golang/github.com/go-chi/chi/v5","source":"GO-2026-5774"},{"ecosystem":"Go","fixed":["5.3.0"],"introduced":["5.2.1"],"last_affected":[],"package":"github.com/go-chi/chi/v5/middleware","purl":null,"source":"GHSA-3fxj-6jh8-hvhx"},{"ecosystem":"Go","fixed":["5.3.0"],"introduced":["5.2.1"],"last_affected":[],"package":"github.com/go-chi/chi/v5/middleware","purl":"pkg:golang/github.com/go-chi/chi/v5/middleware","source":"GHSA-3fxj-6jh8-hvhx"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2026.8.2-1.1"],"introduced":["0"],"last_affected":[],"package":"cloudflared","purl":"pkg:rpm/opensuse/cloudflared\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11607-1"}],"prev":{"headline":"actix-files before 0.6.10 Information Disclosure via Files","id":"CVE-2026-72814"},"products":["chi"],"published":"2026-08-14","related":[],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["go-chi"]},"summary":"Attackers can bypass IP-based access controls and rate limits by spoofing the X-Forwarded-For header in go-chi chi middleware.","url":"https://insights.sbomify.com/CVE-2026-72815/"}