VDB
Sign up
MEDIUM6.1

GHSA-c77f-4rgj-jfr4

Cross-site Scripting in Beego

Quick fix

GHSA-c77f-4rgj-jfr4 — github.com/beego/beego/v2: upgrade to the fixed version with the command below.

go get github.com/beego/beego/v2@v2.0.2

Details

Cross Site Scripting (XSS) vulnerability exists in the admin panel in Beego v2.0.1 via the URI path in an HTTP request, which is activated by administrators viewing the "Request Statistics" page.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/beego/beego/v2
Introduced in: 0Fixed in: 2.0.2
Fixgo get github.com/beego/beego/v2@v2.0.2

References

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/beego/beego/v2"]}'