MediumGHSA-c77f-4rgj-jfr4CVE-2021-39391

Cross-site Scripting in Beego

Published 15 Sept 2021 · Updated 7 Dec 2023

Is your project on an affected github.com/beego/beego/v2?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.0.2
Fixed in
2.0.2
Update to the fixed version for your release line, for example: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.

Is GHSA-c77f-4rgj-jfr4 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/beego/beego/v2, and gives you the command that fixes it.

More advisories for github.com/beego/beego/v2

  • LowCVE-2025-30223Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input in github.com/beego/beego · 1 Apr 2025
  • CriticalCVE-2025-30223Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input · 31 Mar 2025
  • LowCVE-2024-55885Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego · 18 Dec 2024
  • MediumCVE-2024-55885Beego has Collision Hazards of MD5 in Cache Key Filenames · 12 Dec 2024
  • LowCVE-2024-40464Beego privilege escalation vulnerability via sendMail in github.com/beego/beego/v2 · 19 Aug 2024
  • HighCVE-2024-40464Beego privilege escalation vulnerability · 31 Jul 2024
All 16 advisories for github.com/beego/beego/v2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.