[Aikido] Fix 9 security issues in lodash, uuid, @octokit/endpoint and 3 more - #18
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
[Aikido] Fix 9 security issues in lodash, uuid, @octokit/endpoint and 3 more#18aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
Conversation
Author
|
Closed by Aikido: a new AutoFix has been created → #19 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-43496556-vvp1
branch
June 3, 2026 23:38
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 via options.imports and high-severity buffer overflow in uuid.
✅ Code not affected by breaking changes.
✅ No breaking changes from the package upgrades affect this codebase.
lodash (4.17.21 => 4.18.1):
The codebase only uses
_.filter()and_.merge()methods (insrc/gh.js)The breaking changes affect
_.unset(),_.omit(), and_.template(), which are not used in this codebaseuuid (8.3.2 => 11.1.1):
uuidpackage is not imported or used anywhere in the source code@octokit packages:
These packages are indirect dependencies through
@actions/githubv6.0.1, which already uses the target versions or newer:@octokit/endpoint: already at v9.0.6@octokit/plugin-paginate-rest: already at v9.2.2@octokit/request: already at v8.4.1@octokit/request-error: already at v5.1.1The action runs on Node.js 24 (
runs: using: node24inaction.yml), which satisfies all Node.js version requirementsNo custom HTTP agents or restricted request options are being passed to Octokit methods
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.All breaking changes by upgrading uuid from version 8.3.2 to 11.1.1 (CHANGELOG)
All breaking changes by upgrading @octokit/endpoint from version 6.0.12 to 9.0.6 (CHANGELOG)
All breaking changes by upgrading @octokit/plugin-paginate-rest from version 2.21.3 to 9.2.2 (CHANGELOG)
@octokit/coreto v5@octokit/typesto v11All breaking changes by upgrading @octokit/request from version 5.6.3 to 8.4.1 (CHANGELOG)
node-fetchin favor of globalmethod,headers,body,signal,dataAll breaking changes by upgrading @octokit/request-error from version 2.1.0 to 5.1.1 (CHANGELOG)
@octokit/typesto v11✅ 9 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 security vulnerabilities in lodash, uuid, undici, and @octokit/* packages
Short summary
This PR remediates security vulnerabilities in seven npm packages:
lodash,uuid,undici,@octokit/endpoint,@octokit/plugin-paginate-rest,@octokit/request, and@octokit/request-error. Changes touch the rootpackage.json(direct dependency version specs and a newoverridesblock) and the rootpackage-lock.json(resolved versions for all affected transitive packages).lodash
lodashis a direct dependency declared in the rootpackage.json. Its version spec was raised from^4.17.21to^4.18.1, which npm resolved to4.18.1in the lockfile. The bump was required to reach the patched release that addresses three separate vulnerabilities present in all4.xversions below4.18.1.uuid
uuidappears as a transitive dependency pulled in byaws-sdk(itself a direct dependency). Becauseaws-sdkv2 is end-of-life and no published version of it upgrades its nesteduuidto a safe release, no parent-bump path exists. A targetedoverridesentry ("uuid@<11.1.1": "11.1.1") was added to the rootpackage.jsonto force the lockfile to resolveuuidto11.1.1for all instances below the patched threshold. Theuuidinstance previously pulled in by@actions/corewas eliminated entirely by bumping@actions/coreto^1.11.0(see below), which drops theuuiddependency altogether.undici
undiciis a transitive dependency pulled in by@actions/http-client, which is itself a transitive dependency of@actions/github. The installed@actions/http-client@2.2.3declaresundici@^5.28.5, capping resolution to the vulnerable v5 branch. The first@actions/http-clientrelease that depends on a safeundici(v6.x) is v3.0.2, which is a major bump outside the^2.2.0range that@actions/github@6.0.1declares — meaning no parent version within the current@actions/githubconstraint can auto-resolve to a safeundici. A targetedoverridesentry ("undici@<6.24.0": "6.24.0") was therefore added to the rootpackage.json, forcing the lockfile to resolveundicito6.24.0for all instances below that threshold.@octokit/endpoint
@octokit/endpointis a transitive dependency pulled in by@octokit/request. The installed@octokit/request@5.6.3only resolves@octokit/endpointinto the vulnerable6.xrange. Fixing this required bumping@actions/githubfrom^4.0.0to^6.0.0in the rootpackage.json;@actions/github@6.xdepends on@octokit/core@^5, which in turn pulls@octokit/request@^8.4.1, and that version declares@octokit/endpoint@^9.0.0— allowing npm to resolve@octokit/endpointto the patched9.0.6.@octokit/plugin-paginate-rest
@octokit/plugin-paginate-restis a transitive dependency pulled in by@actions/github. The previously installed@actions/github@4.0.0resolved it to the vulnerable2.21.3. Bumping@actions/githubto^6.0.0in the rootpackage.jsonwas required because@actions/github@6.xis the first release that declares@octokit/plugin-paginate-rest@^9.0.0, allowing npm to resolve it to the patched9.2.2.@octokit/request
@octokit/requestis a transitive dependency with two parent paths: via@octokit/coreand via@octokit/graphql. Both parents were at versions that pinned@octokit/requestinto the vulnerable5.xrange. Bumping@actions/githubto^6.0.0resolved this:@actions/github@6.xbrings@octokit/core@^5and@octokit/graphql@^7, both of which declare@octokit/request@^8.x, allowing npm to resolve it to the patched8.4.1.@octokit/request-error
@octokit/request-erroris a transitive dependency pulled in by both@octokit/coreand@octokit/request. The previously installed versions of those parents constrained@octokit/request-errorto the vulnerable2.xrange. The same@actions/githubbump to^6.0.0that fixed@octokit/requestalso resolved this:@octokit/core@5.xand@octokit/request@8.xboth declare@octokit/request-error@^5.x, allowing npm to resolve it to the patched5.1.1.Version changes
lodash^4.17.21/4.17.21^4.18.1/4.18.1@actions/core^1.10.0/1.10.0^1.11.0/1.11.1uuidinstance@actions/github^4.0.0/4.0.0^6.0.0/6.0.1@octokit/plugin-paginate-rest,@octokit/request,@octokit/request-error,@octokit/endpointuuid8.0.0(nested underaws-sdk)11.1.1aws-sdkv2)undici5.29.06.24.0@actions/http-clientv3 is outside^2.2.0range declared by@actions/github)@octokit/endpoint6.0.129.0.6@actions/github→@octokit/request@8.x)@octokit/plugin-paginate-rest2.21.39.2.2@actions/github@6.x)@octokit/request5.6.38.4.1@actions/github@6.x→@octokit/core@5.x)@octokit/request-error2.1.05.1.1@octokit/core@5.x,@octokit/request@8.x)@octokit/core3.6.05.2.2@actions/github@6.x)@octokit/graphql4.8.07.1.1@actions/github@6.x→@octokit/core@5.x)@actions/http-client2.2.32.2.3(spec unchanged;undiciforced to6.24.0via override)undicioverride applied above this package@octokit/plugin-rest-endpoint-methods10.4.1@actions/github@6.x)@octokit/auth-token4.x@octokit/core@5.x)@octokit/types13.x@octokit/core@5.x,@octokit/request@8.x)