fix(deps): upgrade schema-utils to v4 to resolve ajv CVE-2025-69873#893
Open
fuleinist wants to merge 1 commit into
Open
fix(deps): upgrade schema-utils to v4 to resolve ajv CVE-2025-69873#893fuleinist wants to merge 1 commit into
fuleinist wants to merge 1 commit into
Conversation
Resolves CVE-2025-69873 (GHSA-2g4f-4pwh-qvx6) by upgrading schema-utils from v3 (which depends on ajv 6.x) to v4 (which uses ajv 8.x). ## Changes - Upgrade schema-utils from ^3.1.1 to ^4.3.3 in package.json - Add package-lock.json with updated dependencies ## Testing - [x] Unit test added for schema-utils v4 compatibility - [x] Test passes - [x] Existing tests still pass (except pre-existing plugin.spec.ts type error) Fixes TypeStrong#884
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.
Summary
Upgrade
schema-utilsfrom^3.1.1to^4.3.3to resolve CVE-2025-69873 (GHSA-2g4f-4pwh-qvx6).Problem
The project depends on
schema-utilsv3 which internally depends onajvv6.x. This version ofajvhas a ReDoS (Regular Expression Denial of Service) security vulnerability with CVSS 7.5.Solution
Upgrade
schema-utilsto v4 which usesajvv8.x that includes the security fix. Thevalidatefunction API remains compatible.Changes
package.json: Updateschema-utilsfrom^3.1.1to^4.3.3package-lock.json: Added with updated dependenciestest/unit/schema-utils/schema-utils-upgrade.spec.ts: New test verifying schema-utils v4 works correctlyTesting
Notes
The pre-existing
plugin.spec.tsfailure is due to a TypeScript type error insrc/hooks/tap-after-compile-to-get-issues.tswhich is unrelated to this schema-utils upgrade.Fixes #884