{"id":"CVE-2022-31259","aliases":["GHSA-qx32-f6g6-fcfr","GO-2022-0463"],"url":"https://o3.security/vulnerability/CVE-2022-31259","summary":"Access control bypass in beego","details":"The route lookup process in beego prior to 1.12.9 and 2.x prior to 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).","published":"2022-05-21T00:00:00Z","modified":"2026-08-12T03:51:23.313654634Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"github.com/beego/beego/v2","fixedVersion":"2.0.3"},{"ecosystem":"Go","name":"github.com/beego/beego","fixedVersion":"1.12.9"}],"fix":{"url":"https://github.com/beego/beego/pull/4954","label":"beego/beego#4954"},"references":[{"type":"WEB","url":"https://beego.vip"},{"type":"WEB","url":"https://github.com/beego/beego/tree/v2.0.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31259.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qx32-f6g6-fcfr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31259"},{"type":"REPORT","url":"https://github.com/beego/beego/issues/4946"},{"type":"WEB","url":"https://github.com/beego/beego/pull/4954"},{"type":"WEB","url":"https://github.com/beego/beego/pull/4958"},{"type":"WEB","url":"https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009"},{"type":"WEB","url":"https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd"},{"type":"PACKAGE","url":"https://github.com/beego/beego"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0463"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:23.313654634Z"}}