[Aikido] Fix 7 security issues in lodash, @octokit/endpoint, @octokit/plugin-paginate-rest and 2 more - #11
Closed
aikido-autofix[bot] wants to merge 1 commit into
Conversation
Author
|
Closed by Aikido: a new AutoFix has been created → #12 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-33652031-fmxq
branch
May 22, 2026 00:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Upgrade dependencies to fix critical RCE vulnerability in lodash template injection and prototype pollution attacks via untrusted imports.
✅ No breaking changes from the package upgrades affect this codebase:
lodash (4.17.21 => 4.18.1):
_.filterand_.mergeinsrc/gh.js), but does not use_.unset,_.omit, or_.templatemethods that have breaking changes.@octokit packages:
The action runs on
node24(as specified inaction.yml), which satisfies all Node.js version requirements (v10, v12, v14, v16 are all older than Node 24).The codebase does not use OAuth Authorizations APIs or workflow endpoints that were removed.
The codebase does not pass custom HTTP agents or custom request options to
@octokit/request- it only uses standardoctokit.request()andoctokit.paginate()calls with basic parameters (method,headers,bodywhich remain supported).The codebase relies on
@actions/githubpackage which handles the octokit initialization and will manage the transition fromnode-fetchto globalfetchinternally.No GHEC-specific routes or preview APIs are used.
All breaking changes are either for features not used by this codebase or are internal implementation changes that don't affect the API surface being used.
All breaking changes by upgrading lodash from version 4.17.21 to 4.18.1 (CHANGELOG)
_.unset/_.omitnow blockconstructorandprototypeas non-terminal path keys unconditionally. Calls that previously returnedtrueand deleted the property now returnfalseand leave the target untouched._.templatenow throws"Invalid imports option passed into _.template"whenimportskeys contain forbidden identifier characters, which were previously allowed.✅ 7 CVEs resolved by this upgrade, including 1 critical 🚨 CVE
This PR will resolve the following CVEs:
linkheaders, allowing attackers to cause denial of service through specially crafted requests.🤖 Remediation details
Fix transitive security vulnerabilities in lodash and @octokit/* packages
This PR remediates security vulnerabilities in five packages named in the audit:
lodash,@octokit/endpoint,@octokit/plugin-paginate-rest,@octokit/request, and@octokit/request-error. All fixes are applied via direct dependency version spec changes in the rootpackage.json, withpackage-lock.jsonupdated accordingly. In the course of fixing the@octokit/*chain, a new transitive vulnerability inundiciwas introduced and subsequently resolved by further parent bumps to@actions/githuband@actions/core.lodash
lodashis a direct dependency declared in the rootpackage.json. Its version spec was raised from^4.17.21to^4.18.1, resolving to4.18.1in the lockfile. This was necessary to satisfy the patched version floor required by three separate CVEs affecting the4.17.xrelease line.@octokit/endpoint
@octokit/endpointis a transitive dependency pulled in by@octokit/request. Fixing it required bumping@actions/github(a direct dependency) from^4.0.0ultimately to^8.0.1, which transitively resolves@octokit/requestto10.x— a version whose declared range for@octokit/endpointis^11.0.x, well above the patched floor of9.0.6. The previously installed6.0.12had no fix available within its major line.@octokit/plugin-paginate-rest
@octokit/plugin-paginate-restis a transitive dependency pulled in by@actions/github. The installed version2.21.3is in an unfixed major line; the patched floor requires9.2.2or later. Bumping@actions/githubto^8.0.1resolves this package to14.0.0, which is well above the required floor.@octokit/request
@octokit/requestis a transitive dependency pulled in through@octokit/coreand@octokit/graphql, both of which are themselves transitive under@actions/github. The installed version5.6.3is in an unfixed major line; the patched floor is8.4.1. Bumping@actions/githubto^8.0.1causes@octokit/coreto resolve to7.x, whose declared range for@octokit/requestis^10.x, resolving to10.0.8in the lockfile.@octokit/request-error
@octokit/request-erroris a transitive dependency pulled in by both@octokit/coreand@octokit/request. The installed version2.1.0is in an unfixed major line; the patched floor is5.1.1. The same@actions/githubbump to^8.0.1that fixes the other@octokit/*packages causes@octokit/requestto resolve to10.x, whose declared range for@octokit/request-erroris^7.x, resolving to7.1.0in the lockfile.Version changes
lodash^4.17.21→4.17.21^4.18.1→4.18.1@actions/github^4.0.0→4.0.0^8.0.1→8.0.1@octokit/endpoint,@octokit/plugin-paginate-rest,@octokit/request,@octokit/request-error, andundici@actions/core^1.10.0→1.10.0^2.0.0→2.0.3undici(via@actions/http-clientupgrade from2.xto3.x)@octokit/endpoint6.0.1211.0.3@actions/githubparent bump@octokit/plugin-paginate-rest2.21.314.0.0@actions/githubparent bump@octokit/request5.6.310.0.8@actions/githubparent bump@octokit/request-error2.1.07.1.0@actions/githubparent bumpundici5.29.06.25.0@actions/github(^8.0.1) and@actions/core(^2.0.0) parent bumps@actions/http-client2.2.33.0.2@actions/coreparent bump; carriesundici@^6.23.0@octokit/core3.6.07.0.6@actions/githubparent bump@octokit/graphql4.8.09.0.3@actions/githubparent bump@octokit/plugin-rest-endpoint-methods5.x17.x@actions/githubparent bump@octokit/auth-token2.x5.x@actions/githubparent bump@octokit/types6.x13.x@actions/githubparent bump