Skip to content

[Snyk] Security upgrade ajv from 5.2.3 to 8.18.0#501

Open
acatl wants to merge 1 commit into
masterfrom
snyk-fix-b9b69d1dcf24a87dd3e1634447800852
Open

[Snyk] Security upgrade ajv from 5.2.3 to 8.18.0#501
acatl wants to merge 1 commit into
masterfrom
snyk-fix-b9b69d1dcf24a87dd3e1634447800852

Conversation

@acatl

@acatl acatl commented Feb 16, 2026

Copy link
Copy Markdown
Collaborator

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • packages/data-point/package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-AJV-15274295
  803  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

Copilot AI review requested due to automatic review settings February 16, 2026 13:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the ajv (Another JSON Schema Validator) dependency from version 5.2.3 to 8.18.0 in the data-point package to address a high-severity Regular Expression Denial of Service (ReDoS) vulnerability (SNYK-JS-AJV-15274295).

Changes:

  • Upgrade ajv from 5.2.3 to 8.18.0 in packages/data-point/package.json

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

],
"dependencies": {
"ajv": "5.2.3",
"ajv": "8.18.0",

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

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

The upgrade from ajv 5.2.3 to 8.18.0 introduces multiple breaking changes that are not addressed in this PR:

  1. Removed v5 option: The v5: false option used throughout the codebase (in factory.test.js, schema.js, and integrations.js) was removed in ajv v7. This option no longer exists and will be ignored or may cause errors.

  2. Error format changes: ajv v7+ changed the error object structure - the dataPath property was renamed to instancePath. The test snapshots explicitly check for dataPath in error objects, which will cause test failures.

  3. JSON Schema draft support: ajv v6+ dropped support for JSON Schema draft-04. The code should verify that all schemas are compatible with draft-06 or later.

  4. Strict mode by default: ajv v7+ enables strict schema mode by default, which may reject previously valid schemas. The code may need to pass strict: false in the Ajv constructor options if relying on lenient schema validation.

  5. Node.js version requirement: ajv v8+ requires Node.js 12 or later, but package.json specifies "node": ">=8".

The code in lib/entity-types/entity-schema/factory.js and resolve.js needs to be updated to handle these changes, and test snapshots need to be regenerated. Additionally, the data-point-service package also uses ajv 5.2.3 and should be upgraded in coordination with this change.

Copilot uses AI. Check for mistakes.
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