CriticalGHSA-95f9-94vc-665hCVE-2022-31836GO-2022-0569
Path Traversal in Beego
Published 6 Jul 2022 · Updated 8 Jul 2026
Is your project on an affected github.com/beego/beego?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <1.12.11
- Fixed in
- 1.12.11
Update to the fixed version for your release line, for example:
go get github.com/beego/beego@v1.12.11- Affected
- >=2.0.0 <2.0.4
- Fixed in
- 2.0.4
Update to the fixed version for your release line, for example:
go get github.com/beego/beego/v2@v2.0.4Details
The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.
Is GHSA-95f9-94vc-665h 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, and gives you the command that fixes it.
More advisories for github.com/beego/beego
- 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-2021-30080Access control bypass via incorrect route lookup in github.com/beego/beego and beego/v2 · 22 Aug 2022
- LowCVE-2022-31259Access control bypass due to broad route matching in github.com/beego/beego and beego/v2 · 1 Jul 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-31836
- Linkgithub.com/beego/beego/issues/4961
- Linkgithub.com/beego/beego/pull/5025
- Linkgithub.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57
- Advisorygithub.com/advisories/GHSA-95f9-94vc-665h
- Packagegithub.com/beego/beego
- Linkpkg.go.dev/vuln/GO-2022-0569
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.