{"cve":"CVE-2022-31259","nvd":{"published":"2022-05-21T19:15:52.990","modified":"2026-06-17T04:45:14.687","status":"Modified","description":"The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":[],"references":["https://beego.vip","https://github.com/advisories/GHSA-qx32-f6g6-fcfr","https://github.com/beego/beego/issues/4946","https://github.com/beego/beego/tree/v2.0.2","https://beego.vip"],"products":["beego:beego"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-31259","score":0.22158,"percentile":0.97672,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-qx32-f6g6-fcfr","url":"https://osv.dev/vulnerability/GHSA-qx32-f6g6-fcfr","summary":"Access control bypass in beego","modified":"2026-07-08T06:27:50.220219676Z","packages":[{"ecosystem":"Go","name":"github.com/beego/beego/v2","purl":"pkg:golang/github.com/beego/beego/v2","ranges":["<2.0.3"],"fixed":["2.0.3"]},{"ecosystem":"Go","name":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","ranges":["<1.12.9"],"fixed":["1.12.9"]}]},{"id":"GO-2022-0463","url":"https://osv.dev/vulnerability/GO-2022-0463","summary":"Access control bypass due to broad route matching in github.com/beego/beego and beego/v2","modified":"2024-06-03T20:51:31Z","packages":[{"ecosystem":"Go","name":"github.com/astaxie/beego","purl":"pkg:golang/github.com/astaxie/beego","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","ranges":["<1.12.9"],"fixed":["1.12.9"]},{"ecosystem":"Go","name":"github.com/beego/beego/v2","purl":"pkg:golang/github.com/beego/beego/v2","ranges":["<2.0.3"],"fixed":["2.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}