Skip to content

fix(deps): upgrade schema-utils to v4 to resolve ajv CVE-2025-69873#893

Open
fuleinist wants to merge 1 commit into
TypeStrong:mainfrom
fuleinist:fix/upgrade-schema-utils-to-v4
Open

fix(deps): upgrade schema-utils to v4 to resolve ajv CVE-2025-69873#893
fuleinist wants to merge 1 commit into
TypeStrong:mainfrom
fuleinist:fix/upgrade-schema-utils-to-v4

Conversation

@fuleinist
Copy link
Copy Markdown

Summary

Upgrade schema-utils from ^3.1.1 to ^4.3.3 to resolve CVE-2025-69873 (GHSA-2g4f-4pwh-qvx6).

Problem

The project depends on schema-utils v3 which internally depends on ajv v6.x. This version of ajv has a ReDoS (Regular Expression Denial of Service) security vulnerability with CVSS 7.5.

Solution

Upgrade schema-utils to v4 which uses ajv v8.x that includes the security fix. The validate function API remains compatible.

Changes

  • package.json: Update schema-utils from ^3.1.1 to ^4.3.3
  • package-lock.json: Added with updated dependencies
  • test/unit/schema-utils/schema-utils-upgrade.spec.ts: New test verifying schema-utils v4 works correctly

Testing

  • Unit test added for schema-utils v4 compatibility
  • New test passes
  • All other existing tests pass (except pre-existing TypeScript type error in plugin.spec.ts unrelated to this change)

Notes

The pre-existing plugin.spec.ts failure is due to a TypeScript type error in src/hooks/tap-after-compile-to-get-issues.ts which is unrelated to this schema-utils upgrade.

Fixes #884

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
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.

Security: Upgrade schema-utils to v4 to resolve ajv CVE-2025-69873 (GHSA-2g4f-4pwh-qvx6)

1 participant