{"id":"GHSA-qx32-f6g6-fcfr","revision":"c4492774565449fcb43fc8423bc593f1","records":[{"revision":"c4492774565449fcb43fc8423bc593f1","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-qx32-f6g6-fcfr","aliases":["CVE-2022-31259","GO-2022-0463"],"title":"Access control bypass in beego","description":"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).","state":0,"publishedAt":"2022-05-22T00:00:32+00:00","modifiedAt":"2026-07-08T06:27:50.2202197+00:00","affected":[{"ecosystem":"Go","name":"github.com/beego/beego/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/beego/beego","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.9"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-31259","https://github.com/beego/beego/issues/4946","https://github.com/beego/beego/pull/4954","https://github.com/beego/beego/pull/4958","https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009","https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd","https://github.com/advisories/GHSA-qx32-f6g6-fcfr","https://github.com/beego/beego","https://github.com/beego/beego/tree/v2.0.2","https://pkg.go.dev/vuln/GO-2022-0463"],"sourceUrl":"https://github.com/advisories/GHSA-qx32-f6g6-fcfr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qx32-f6g6-fcfr","identifiers":["GHSA-qx32-f6g6-fcfr","CVE-2022-31259","GO-2022-0463"]},"retained":false,"historicalAffected":[]}],"coverage":[]}