fix(pattern): use configured RegExp engine with $data keyword to mitigate ReDoS attacks (CVE-2025-69873)#2586
Merged
epoberezkin merged 3 commits intomasterfrom Feb 14, 2026
Conversation
…st ReDoS attacks in pattern validation
This was referenced Feb 14, 2026
8 tasks
vadyvas
pushed a commit
to Redocly/ajv
that referenced
this pull request
Feb 27, 2026
…gate ReDoS attacks (CVE-2025-69873) (ajv-validator#2586) * fix(pattern): address CVE-2025-69873 by implementing safeguards against ReDoS attacks in pattern validation * remove console.log * remove Node.js 16 CI build --------- Co-authored-by: Lucas Akira Uehara <80917717@telefonicati.onmicrosoft.com>
bosniltd-a11y
approved these changes
Mar 2, 2026
This was referenced Mar 7, 2026
3 tasks
man8
added a commit
to man8/assetmill
that referenced
this pull request
Apr 15, 2026
## Summary Upgrades `ajv` from 8.17.1 → **8\.18.0** (minor release) to resolve a high-severity **Regular Expression Denial of Service (ReDoS)** finding ([CVE-2025-69873](ajv-validator/ajv#2586)) in ajv's `pattern` keyword with `\$data`. Linear: [MAN8-7228](https://linear.app/man8/issue/MAN8-7228/assetmill-upgrade-ajv-to-8180-snyk-redos) Snyk project: https://app.snyk.io/org/man8/project/06db0e24-92a7-4385-93f2-4d01ae449811 ## Caller impact Two call sites: - `src/config/json-schema.ts` — compiles the assetmill config schema via Ajv - `src/config/loader.ts` — validates loaded YAML configs ajv 8.18.0 is fully backward-compatible with 8.17.x; no code changes required. ## Test coverage Existing tests cover both compile and validate paths: - `src/__tests__/config.test.ts` - `src/__tests__/config-error-handling.test.ts` No new tests required for a minor-release patch. ## Verification - `npm run ci` green locally — build + 73 tests pass + lint clean Supersedes dependabot #40 (same upgrade, cleaner ticket-linked commit history). ## Test plan - [x] `npm run ci` passes locally - [x] GitHub Actions CI passes - [x] Snyk re-scan shows the ajv ReDoS finding resolved 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
No description provided.