-
Notifications
You must be signed in to change notification settings - Fork 7
SSCSCI-2338: Resolve CVE-2024-21538 #1935
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
Open
KatKovacs1
wants to merge
14
commits into
master
Choose a base branch
from
SSCSCI-2338-bump-cross-spawn
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+510
−275
Conversation
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
Labels
enable_keep_helm
keep helm release when tests fail for manual testing
ns:sscs
prd:sscs
rel:sscs-tribunals-frontend-pr-1935
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.
Jira link
See SSCSCI-2338
Change description
Steps to resolve CVE-2024-21538
Pre-commit migration
Pre-commit is a pre-commit hook installer for
git. The repo is not archived or deprecated but the last npm release was 9 years ago. Not expecting any updates here, so migrated to Husky.Also added lint-staged to run code-formatting and linting only on staged files during commit.
Moving away from uk-bank-holidays module
Uk-bank-holidays is a module that checks whether a date is a UK bank holiday or not. This is marked as public archived and was last updated 8 years ago. I didn't find any other HMCTS repos referencing this module. Created a new utility based on the removed module
Bump cross-spawn
Cross-spawn is a transitive dependency via
cross-env,eslint,mocha,nyc,rewireandwebpack-cli. All packages use v7, butcross-env,nycandwebpack-cliuse version7.0.3, which is affected by CVE-2024-21538. Addedcross-spawnto resolutions to update to the latest7.0.6version.Testing done
Changes tested in preview and nightly-dev pipelines, and manual happy-path test (Ref: 1770053401954206).
Security Vulnerability Assessment
CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?
📝 Issue Notes
Checklist