LowGO-2022-0470CVE-2022-31022GHSA-9w9f-6mg8-jp7w

No access control in github.com/blevesearch/bleve and bleve/v2

Published 15 Jul 2022 · Updated 4 Feb 2026

Is your project on an affected github.com/blevesearch/bleve?

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 packages

Affected
All versions
Fixed in
No fix released
Affected
<2.5.0
Fixed in
2.5.0
Update to the fixed version for your release line, for example:go get github.com/blevesearch/bleve/v2@v2.5.0

Details

HTTP handlers provide unauthenticated access to the local filesystem.

The Bleve http package is intended for demonstration purposes and contains no authentication, authorization, or validation of user inputs. Exposing handlers from this package can permit attackers to create files and delete directories.

Is GO-2022-0470 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/blevesearch/bleve, and gives you the command that fixes it.

References

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