fix(deps): update module github.com/gofiber/fiber/v2 to v2.52.7 [security] #204
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.52.6
->v2.52.7
GitHub Vulnerability Alerts
CVE-2025-48075
Summary
When using the
fiber.Ctx.BodyParser
to parse into a struct with range values, a panic occurs when trying to parse a negative range indexDetails
fiber.Ctx.BodyParser
can map flat data to nested slices usingkey[idx]value
syntax, however when idx is negative, it causes a panic instead of returning an error stating it cannot process the data.Since this data is user-provided, this could lead to denial of service for anyone relying on this
fiber.Ctx.BodyParser
functionalityReproducing
Take a simple GoFiberV2 server which returns a JSON encoded version of the FormData
Correct Behaviour
Send a valid request such as:
You recieve valid JSON
Crashing behaviour
Send an invalid request such as:
The server panics and crashes
Impact
Anyone using
fiber.Ctx.BodyParser
can/will have their servers crashed when an invalid payload is sentRelease Notes
gofiber/fiber (github.com/gofiber/fiber/v2)
v2.52.7
Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.