Repository navigation
Fix CVE-2026-17495 by bumping locked moment to 2.31.0 - #772
Merged
Merged
Conversation
fpigeonjr
marked this pull request as ready for review
November 10, 2026 17:00
fpigeonjr
force-pushed
the
fix-moment-cve-2026-17495
branch
from
November 10, 2026 17:14
c9e54bd to
c4a0a53
Compare
jgamboa-flexion
approved these changes
Nov 10, 2026
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.
Description
Lock-only update of
momentfrom 2.30.1 → 2.31.0 to fix CVE-2026-17495 (GHSA-4p3w-j4w9-5jqw; affects >=2.29.2 <2.31.0).node_modules/moment, not test-app's own 2.31.0 copy, so the ZAP gate flagged 2.30.1 inmain-*.js.moment: >=2.19.3) is intentionally left alone. Narrowing it would force every consumer to upgrade and break installs for anyone pinned below 2.31.0.Motivation and Context
DAST (medium/high gate)fails on #767, #769 and #771 with[10003] Vulnerable JS Library: Medium, which is this moment version. None of those PRs touch moment. Found by the fleet Dependabot sweep. There's no.zap/rules.tsvexception for 10003, so this is a real fix, not a suppression.Closes N/A (no issue; unblocks #767, #769, #771)
Type of Change (Select One and Apply Label)
bugfixlabelenhancementlabelbreakinglabelmaintenancelabelHow to Test
npm ci && npm ci --prefix test-appnpm ls momentshows onlymoment@2.31.0npm --prefix test-app run build -- --configuration production, thengrep -l 2.30.1 test-app/dist/browser/*.js(no match) andgrep -l 2.31.0 test-app/dist/browser/*.js(main bundle)Expected result: only 2.31.0 is installed and bundled, and the CI
DAST (medium/high gate)check passes.Evidence
../node_modules/moment/moment.js, andmain-LIALRILK.jscontained 2.30.1, matching ZAP runs 42064029364, 40911271582 and 39813832109.main-V5VVGEPW.jscontains 2.31.0, with no 2.30.1 in any emitted JS. Before the final lock-only amendment, the same lock change passednpm --prefix test-app test(176 files / 1936 tests),npm run coverage:check,npm run lint:baselineandnpm run validate:publish.Merge Danger
Screenshots (if appropriate)
N/A
Checklist
gh-<number>-<slug>). There's no issue; the branch isfix-moment-cve-2026-17495.format:checkpasses (npm run format:check)lintpasses (npm run lint)buildpasses (cd test-app && npm run build)cd test-app && npm test)