-
Notifications
You must be signed in to change notification settings - Fork 2
chore: pin ajv to 6.14.0 to avoid security problem #130
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
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 99
🏁 Script executed:
# Look at the pnpm-workspace.yaml file to see the current state cat -n pnpm-workspace.yamlRepository: flumen-dev/flumen.dev
Length of output: 334
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 173
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 16415
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 123
🌐 Web query:
ajv CVE vulnerability 6.14.0 8.18.0 fix💡 Result:
For Ajv (npm
ajv), the “what version fixes it?” depends on which CVE you mean:CVE-2025-69873 (ReDoS when
$datais enabled andpatternis attacker-controlled)Affected: Ajv through 8.17.1 (i.e.,
< 8.18.0, so 6.14.0 is affected) • Fixed: upgrade to 8.18.0+. The upstream fix was merged Feb 14, 2026 and released as 8.18.0. [1][2][3]CVE-2020-15366 (prototype pollution / potential code execution via crafted schema in
ajv.validate())Affected: Ajv 6.12.2 • Fixed: 6.12.3+ (so 6.14.0 is not affected). [4]
If you can’t upgrade immediately for CVE-2025-69873, mitigate by not enabling
$data(or ensuring$data-sourcedpatternvalues can’t be attacker-controlled). [1]Sources
[1] https://nvd.nist.gov/vuln/detail/CVE-2025-69873
[2] ajv-validator/ajv#2586
[3] https://security.snyk.io/package/npm/ajv
[4] https://nvd.nist.gov/vuln/detail/CVE-2020-15366
🌐 Web query:
ajv security advisory 2024 2025 vulnerable versions💡 Result:
For Ajv (npm package
ajv), I could not find any Ajv-specific CVEs/GHSAs that were published in 2024 or 2025. The Ajv advisory that’s currently driving “vulnerable versions” alerts was published Feb 11, 2026 (not 2024/2025): CVE-2025-69873 / GHSA-2g4f-4pwh-qvx6. [1][2]CVE-2025-69873 / GHSA-2g4f-4pwh-qvx6 (ReDoS with
$data)< 8.18.0) [1][2]$dataoption enabled, allowing attacker-controlled regex patterns to reachRegExp()and trigger catastrophic backtracking (ReDoS). [1][2]Sources: NVD CVE record [1], OSV/GHSA record [2], Snyk package page (shows latest as non-vulnerable and indicates fix at 8.18.0) [3].
[1] https://nvd.nist.gov/vuln/detail/CVE-2025-69873
[2] https://osv.dev/vulnerability/GHSA-2g4f-4pwh-qvx6
[3] https://security.snyk.io/package/npm/ajv
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 47
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 2138
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 47
🏁 Script executed:
Repository: flumen-dev/flumen.dev
Length of output: 756
Override doesn't remediate the ajv CVE-2025-69873 vulnerability (still vulnerable).
Line 9 only forces versions below 6.14.0 to 6.14.0, but the Ajv ReDoS advisory (CVE-2025-69873 / GHSA-2g4f-4pwh-qvx6) affects all versions through 8.17.1 and is fixed in 8.18.0. This leaves 6.14.0 vulnerable and doesn't satisfy the security objective. Update the override to pin to 8.18.0:
🔧 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents