-
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix(deps): update module github.com/getkin/kin-openapi to v0.131.0 [security] #1986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update module github.com/getkin/kin-openapi to v0.131.0 [security] #1986
Conversation
ℹ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
6ea9bf6 to
747d453
Compare
Kusari Analysis ResultsAnalysis for commit: 657f8d9, performed at: 2025-07-15T14:06:58Z • • Recommendation✅ PROCEED with this Pull Request Summary✅ No Flagged Issues Detected All values appear to be within acceptable risk parameters. This PR safely updates github.com/getkin/kin-openapi from v0.128.0 to v0.131.0, which fixes a HIGH severity vulnerability (CVE-2025-30153) related to ZIP bomb attacks that could cause out-of-memory conditions. The security code analysis shows no issues, and the dependency changes include only permissive licenses (MIT, BSD-3-Clause, Apache-2.0). The package has good maintenance (8/10) and code review (9/10) scores, indicating it's well-maintained. The additional YAML-related dependency changes appear to be related to this security update and don't introduce new risks. Found this helpful? Give it a 👍 or 👎 reaction! Click to expand for details and specific link to issuesDependency Changes
Risk DetailsSafe Dependency Changes
|
747d453 to
d803a41
Compare
|
Kusari PR Analysis rerun based on - d803a41 performed at: 2025-07-15T13:58:28Z - link to updated analysis |
d803a41 to
657f8d9
Compare
|
Kusari PR Analysis rerun based on - 657f8d9 performed at: 2025-07-15T14:06:58Z - link to updated analysis |
This PR contains the following updates:
v0.128.0->v0.131.0GitHub Vulnerability Alerts
CVE-2025-30153
Summary
When validating a request with a multipart/form-data schema, if the OpenAPI schema allows it, an attacker can upload a crafted ZIP file (e.g., a ZIP bomb), causing the server to consume all available system memory.
Details
The root cause comes from the ZipFileBodyDecoder, which is registered automatically by the module (contrary to what the documentation says.
PoC
To reproduce the vulnerability, you can use the following OpenAPI schema:
And this code to validate the request (nothing fancy, it basically only calls the
openapi3filter.ValidateRequestfunction`):We also need to create a zip bomb. This command will create a 4.7GB file and compress it to to 4.7MB zip archive:
Run the PoC provided, and upload the zip bomb with
curl localhost:8080/ -F file="@​/tmp/bomb.zip;type=application/zip" -v.Observe the memory consumption of the test server during and after the upload (it jumped to a bit over 22GB in my testing, with only a 4.7MB input file, you can reduce the size of the generated file to not kill your test machine when reproducing.)
Impact
An attacker can trigger an out-of-memory (OOM) condition, leading to server crashes or degraded performance.
It seems to only be exploitable if the OpenAPI schema allows for multipart upload.
Remediation
I see at least 2 potential fixes/improvements:
ZipFileBodyDecoderto enforce a maximum size of the decompressed archive and bailout as soon as it's reached (probably with a small default value and allow the users to configure it through the input options ?)Release Notes
getkin/kin-openapi (github.com/getkin/kin-openapi)
v0.131.0Compare Source
What's Changed
Full Changelog: getkin/kin-openapi@v0.130.0...v0.131.0
v0.130.0Compare Source
What's Changed
New Contributors
Full Changelog: getkin/kin-openapi@v0.129.0...v0.130.0
v0.129.0Compare Source
What's Changed
x-www-form-urlencodedwith arbitrary nested allOf by @mikhalytch in https://github.com/getkin/kin-openapi/pull/1046New Contributors
Full Changelog: getkin/kin-openapi@v0.128.0...v0.129.0
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.