Skip to content

JavaScript AWS KMS Storage: security dependency updates (KSM-1219) - #1168

Merged
mgallego-keeper merged 4 commits into
release/storage/javascript/aws-kms/v1.0.1from
feature/KSM-1219-security-version-bumps-aws-kms
Sep 16, 2026
Merged

mgallego-keeper merged 4 commits into
release/storage/javascript/aws-kms/v1.0.1from
feature/KSM-1219-security-version-bumps-aws-kms

Conversation

@stas-schaller

@stas-schaller stas-schaller commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

JavaScript AWS KMS Storage: updates js-yaml, handlebars, brace-expansion, and other transitive dependencies to resolve every open Dependabot advisory on this package's package-lock.json, and removes an unused yarn.lock.

Changes

Maintenance

  • KSM-1219 - Resolved all flagged advisories in package-lock.json via npm audit fix. package.json unchanged; every affected package resolves within its existing declared range.
  • KSM-1219 - Removed yarn.lock. Both CI workflows for this package (test and publish) run npm ci only. The file dated back to the package's first commit in 2021 and was never read by anything, but Dependabot scanned it as a second manifest and double-counted every CVE in this package.

Testing

cd sdk/javascript/packages/aws && npm audit   # 0 vulnerabilities
cd sdk/javascript/packages/aws && npm run build && npm test   # 53/53 passing

Breaking Changes

None.

Related Issues

  • Jira: KSM-1219

Draft, not ready to merge. This branch needs @keeper-security/secrets-manager-core bumped to v17.6.0 once that release publishes. Its range (^17.3.0) already allows 17.6.0; it's just not out yet. Opening as a draft now so review on the dependency fixes isn't blocked on that.

saldoukhov and others added 4 commits August 13, 2026 13:53
…-parser

- Bumps the AWS SDK far enough that fast-xml-parser drops out of the
  dependency tree entirely (CVE-2026-41650) - the strongest fix available,
  the dependency is gone rather than patched
- handlebars -> 4.7.9 (CVE-2026-33938, CVE-2026-33941) - dev-only via
  ts-jest
- @babel/core -> 7.29.7 (CVE-2026-49356) - dev-only

Also picks up two adjacent fixes from the same lockfile regeneration that
weren't cleanly separable via cherry-pick: a minimatch brace-expansion
ReDoS fix (VM-2511) and a fast-xml-builder fix (VM-2539), both
lockfile-only.

Took the final package-lock.json/yarn.lock state from Sergey Aldoukhov's
unmerged vm-sast-batch-1 branch (commits 831b7b48, 28af7fea, 95cf4fe5,
ca69e44b, efde007d) rather than cherry-picking individually - the AWS SDK
bump's diff isn't independent of the two intermediate commits it builds
on.

KSM-1219
…ansion, picomatch and related transitive advisories
CI only ever runs npm ci; yarn.lock hasn't been read by any workflow
and only exists because it was present in the package's first commit
in 2021. Dependabot scanned it as a second manifest, double-counting
every CVE in this package. No other JS storage package has one.
@socket-security

socket-security Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​aws-sdk/​client-kms@​3.975.0 ⏵ 3.1108.0100 +2100100 +198100

View full report

@stas-schaller
stas-schaller force-pushed the feature/KSM-1219-security-version-bumps-aws-kms branch from 1ed6e71 to 22f686d Compare September 16, 2026 16:18

@mgallego-keeper mgallego-keeper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security review.

This review checked the dependency bump for supply-chain integrity and CVE-fix completeness, and separately reviewed the yarn.lock removal.

What I verified:

  • npm audit on the pre-change lockfile found 13 vulnerabilities. The post-change lockfile has 0. I ran both audits myself.
  • fast-xml-parser and fast-xml-builder are both fully removed from the tree, not just bumped. Both sat on the real production install path through @aws-sdk/client-kms, so this fix has genuine production value.
  • Every changed lockfile entry resolves to https://registry.npmjs.org/ with a matching integrity hash. I checked this exhaustively.
  • The yarn.lock removal is safe. No workflow, script, or document anywhere in the repository reads it. No other JS storage package has ever had one of its own.
  • package.json is unchanged. npm ci succeeds cleanly with 551 packages installed.

One item for a separate follow-up, not blocking this PR:

package.json still contains "overrides": { "fast-xml-parser": "5.5.9" }, below the patched threshold of 5.7.0. This predates this PR and is currently inactive, since nothing in the tree needs fast-xml-parser anymore. If a future change reintroduces a dependency on it, this override would force it back to the vulnerable version. Please remove or update this override in a follow-up change. Filed as a separate ticket.

Verdict: no changes requested on this PR's own diff.

@mgallego-keeper
mgallego-keeper marked this pull request as ready for review September 16, 2026 17:07
@mgallego-keeper
mgallego-keeper merged commit 83c6d4d into release/storage/javascript/aws-kms/v1.0.1 Sep 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants