GO-2022-0463
Access control bypass due to broad route matching in github.com/beego/beego and beego/v2
Quick fix
GO-2022-0463 — github.com/beego/beego: upgrade to the fixed version with the command below.
go get github.com/beego/beego@v1.12.9Details
Routes in the beego HTTP router can match unintended patterns. This overly-broad matching may permit an attacker to bypass access controls.
For example, the pattern "/a/b/:name" can match the URL "/a.xml/b/". This may bypass access control applied to the prefix "/a/".
Are you affected?
Enter the version of the package you're using.
Affected packages
0No fixed version published yet for github.com/astaxie/beego (go modules). Pin to a known-safe version or switch to an alternative.
0Fixed in: 2.0.3go get github.com/beego/beego/v2@v2.0.3References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/astaxie/beego"]}'