Repository navigation
Bump fast-uri to 3.1.6 in reply-schema-linter to clear CVEs - #4571
Conversation
utils/reply-schema-linter pulls fast-uri transitively via ajv, and the lockfile pinned 3.1.0, which is flagged by five high-severity advisories (CVE-2026-6321, CVE-2026-6322, CVE-2026-13676, CVE-2026-16221 and CVE-2026-18446). None of this reaches valkey-server -- the package is CI-only tooling that compiles the reply_schema of every src/commands JSON file -- but the pin surfaces in any SBOM or dependency scan of the source tree. Move the pin to 3.1.6, the newest release still inside ajv's ^3.0.1 range, so no package.json change is needed. The lockfile was regenerated with "npm update fast-uri --package-lock-only" rather than hand-edited, so the resolved/integrity pair comes from the registry. Note that .github/workflows/reply-schemas-linter.yml only triggers on changes to src/commands/*.json, so CI does not exercise this lockfile on a PR that touches nothing else. Verified locally instead: - "npm ci --ignore-scripts" against an empty npm cache with no node_modules present installs cleanly, with no EINTEGRITY error. - "npm audit" reports 0 vulnerabilities. - The linter, invoked exactly as the workflow does, compiles all 427 command schemas and exits 0; fast-uri 3.1.6 is confirmed loaded at runtime by ajv. - As a negative control, deliberately corrupting a reply_schema still makes the linter exit 1, so the passing run is meaningful. Signed-off-by: Stav Ben Shahar <[email protected]>
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #4571 +/- ##
============================================
+ Coverage 78.77% 78.80% +0.02%
============================================
Files 171 171
Lines 89886 89886
============================================
+ Hits 70809 70833 +24
+ Misses 19077 19053 -24 🚀 New features to boost your workflow:
|
`utils/reply-schema-linter` pins fast-uri 3.1.0 transitively via ajv, flagged by [CVE-2026-6321](https://nvd.nist.gov/vuln/detail/CVE-2026-6321), [CVE-2026-6322](https://nvd.nist.gov/vuln/detail/CVE-2026-6322), [CVE-2026-13676](https://nvd.nist.gov/vuln/detail/CVE-2026-13676), [CVE-2026-16221](https://nvd.nist.gov/vuln/detail/CVE-2026-16221) and [CVE-2026-18446](https://nvd.nist.gov/vuln/detail/CVE-2026-18446). Bumped to 3.1.6, the newest release still inside ajv's `^3.0.1` range, so `package.json` is unchanged. The lockfile was regenerated with `npm update fast-uri --package-lock-only` rather than hand-edited. Verified locally: `npm ci --ignore-scripts` on an empty cache installs with no `EINTEGRITY`, `npm audit` reports 0 vulnerabilities, the linter exits 0 over `src/commands` (398 of 427 command entries carry a `reply_schema` and are compiled), and a deliberately corrupted schema still exits 1. Signed-off-by: Stav Ben Shahar <[email protected]> Backport-Source-PR: 4571
…o#4571) `utils/reply-schema-linter` pins fast-uri 3.1.0 transitively via ajv, flagged by [CVE-2026-6321](https://nvd.nist.gov/vuln/detail/CVE-2026-6321), [CVE-2026-6322](https://nvd.nist.gov/vuln/detail/CVE-2026-6322), [CVE-2026-13676](https://nvd.nist.gov/vuln/detail/CVE-2026-13676), [CVE-2026-16221](https://nvd.nist.gov/vuln/detail/CVE-2026-16221) and [CVE-2026-18446](https://nvd.nist.gov/vuln/detail/CVE-2026-18446). Bumped to 3.1.6, the newest release still inside ajv's `^3.0.1` range, so `package.json` is unchanged. The lockfile was regenerated with `npm update fast-uri --package-lock-only` rather than hand-edited. Verified locally: `npm ci --ignore-scripts` on an empty cache installs with no `EINTEGRITY`, `npm audit` reports 0 vulnerabilities, the linter exits 0 over `src/commands` (398 of 427 command entries carry a `reply_schema` and are compiled), and a deliberately corrupted schema still exits 1. Signed-off-by: Stav Ben Shahar <[email protected]>
`utils/reply-schema-linter` pins fast-uri 3.1.0 transitively via ajv, flagged by [CVE-2026-6321](https://nvd.nist.gov/vuln/detail/CVE-2026-6321), [CVE-2026-6322](https://nvd.nist.gov/vuln/detail/CVE-2026-6322), [CVE-2026-13676](https://nvd.nist.gov/vuln/detail/CVE-2026-13676), [CVE-2026-16221](https://nvd.nist.gov/vuln/detail/CVE-2026-16221) and [CVE-2026-18446](https://nvd.nist.gov/vuln/detail/CVE-2026-18446). Bumped to 3.1.6, the newest release still inside ajv's `^3.0.1` range, so `package.json` is unchanged. The lockfile was regenerated with `npm update fast-uri --package-lock-only` rather than hand-edited. Verified locally: `npm ci --ignore-scripts` on an empty cache installs with no `EINTEGRITY`, `npm audit` reports 0 vulnerabilities, the linter exits 0 over `src/commands` (398 of 427 command entries carry a `reply_schema` and are compiled), and a deliberately corrupted schema still exits 1. Signed-off-by: Stav Ben Shahar <[email protected]> Backport-Source-PR: 4571
> [!NOTE] > **Opened ready despite 3 flagged items** (`force_ready` was set): notes flagged low-confidence; release-safety guardrail overrode AI triage; AI triaged PRs without release-notes (confirm include/exclude). Review the sections below and confirm before merging. Cuts **9.1.3** onto release line `9.1`. - Promotes the release notes into a dated section, bumps `src/version.h`, and refreshes the running contributor list. - Release notes computed over the range below (`9.1.2..c6dc0fc`): ``` mode: ga source_ref: 9.1 target_branch: 9.1 base: 9.1.2 @ 7f1dffe head: c6dc0fc @ c6dc0fc ``` ###⚠️ Notes to double-check The generator flagged these notes low-confidence; confirm category and wording before merging: | PR | Category | Why flagged | |----|----------|-------------| | #4571 | Build and Tooling | dev-utility-only change; flagged per build/tooling policy, may not be user-facing; non-fix category on a patch release needs explicit maintainer confirmation | | #4815 | Bug Fixes | could be Observability and Logging | | #4823 | Bug Fixes | explicit impact scope omitted: 32-bit | ### Release-impact review Code detected release-impact terms (availability, memory safety, data integrity, access control, protocol, compatibility) in these PRs; this forces review, it is not a severity classification. The requested urgency is **SECURITY**. Confirm it and decide whether any change needs a hand-authored **Security Fixes** entry:⚠️ [#4571](#4571) names **CVE-2026-6321**. A named CVE normally ships with `SECURITY` urgency and a hand-authored **Security Fixes** entry; this holds the cut at any other urgency. <details> <summary>10 PR(s) with impact signals</summary> | PR | Title | Signal | |----|-------|--------| | [#4571](#4571) | Bump fast-uri to 3.1.6 in reply-schema-linter to clear CVEs | data or persisted-state corruption risk | | [#4676](#4676) | Fix return types of three module API declarations to match definitions | security, access-control, or injection hardening | | [#3645](#3645) | fix: Reject module writes during client pause to prevent crash | server crash, assertion, or availability failure | | [#4880](#4880) | Reject relative expires that overflow when the base time is added | server crash, assertion, or availability failure | | [#4214](#4214) | fix(acl): prevent NULL pointer dereference on malformed selector in ACL file | server crash, assertion, or availability failure | | [#4504](#4504) | Fix crash and wrong return values in the hash stringRef module API | server crash, assertion, or availability failure | | [#4270](#4270) | make getMonotonicUs static in libvalkeylua | server crash, assertion, or availability failure | | [#4733](#4733) | Fix sds overflow assert on RESTORE payload with an overflowing string length | server crash, assertion, or availability failure | | [#4489](#4489) | Hold no descriptor on nodes.conf when rename() publishes it | server crash, assertion, or availability failure | | [#5030](#5030) | Fix cluster Pub/Sub length truncation | memory-safety risk | </details> ### Excluded from generated notes (listed under Security Fixes) #5030 was supplied as a `--security-fix`, so the generated bullet(s) in the normal categories were dropped to avoid double-listing. To keep the notes consistent, it appears only under **Security Fixes**, where each is reviewed as a factual security entry. ###⚠️ Release-safety guardrail overrode AI triage AI excluded these PRs (or gave no verdict) but their text names a release-impact signal, so code forced them into the notes; confirm each bullet, category, urgency, and security treatment: | PR | Title | Guardrail reason | |----|-------|------------------| | [#4571](#4571) | Bump fast-uri to 3.1.6 in reply-schema-linter to clear CVEs |⚠️ release-safety guardrail (data or persisted-state corruption risk; AI exclusion) | ### Triage summary - 20 PR(s) triaged into the notes - 9 PR(s) triaged out - 2 PR(s) hard-excluded by `no-release-notes` Per-PR verdicts (with reasons) are in the run's `triage-verdicts` artifact. To include a wrongly-dropped PR, label it `release-notes` and re-cut. ### Wording carried from other release lines A backported change is cut once per release line, and each cut words its notes independently. To keep one commit from being described differently per branch, a note whose source PR another line already published takes that published wording verbatim (joined on the trailing `(#N)`, which always names the original source PR). Only the text is reused; the category, the `by @handle` credit, and the `(#N)` are this cut's own. - Release lines consulted: `9.2`, `9.0`, `8.1`, `8.0`, `7.2`, `7.0`, `6.2`, `6.0`, `5.0`, `4.0`, `3.2`, `3.0`, `2.8`, `2.6`, `2.4`, `2.2` - 1 generated note(s) already matches the published wording: #4567 - Reused published wording for 8 note(s) <details> <summary>8 note(s) reusing published wording</summary> | PR | Wording from | Carried wording | This cut generated | |----|--------------|-----------------|--------------------| | #3459 | `9.2` (Valkey 9.2.0-rc1) | Fix stream commands that mutate consumer-group or PEL state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) not triggering `WATCH` and client-side tracking invalidation | Stream commands that modify consumer-group state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) now correctly trigger `WATCH` and client tracking invalidation | | #4733 | `7.2` (Valkey 7.2.15) | Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data | Fix a server abort when a `RESTORE` payload declares a string length that overflows the allocation size; such payloads are now rejected as bad data | | #4997 | `7.2` (Valkey 7.2.15) | Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION | Fix `ZINTER`/`ZINTERSTORE` returning input-order-dependent scores when a weighted term is 0 times infinity; such NaN terms now count as 0, matching `ZUNION` | | #4533 | `9.2` (Valkey 9.2.0-rc1) | Clear a stale primary-failure gossip flag on replicas so later failovers don't incorrectly skip the election delay | Fix a stale primary-failure gossip flag on cluster replicas that could let a later unrelated failover skip the normal election delay | | #4676 | `9.2` (Valkey 9.2.0-rc1) | Correct `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry` and `ValkeyModule_ACLAddLogEntryByUserName` declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks | Fix module API declarations of `ValkeyModule_FreeModuleUser` and the ACL log entry functions to return int, avoiding traps on platforms with strict call-signature checks such as WebAssembly | | #4214 | `7.2` (Valkey 7.2.15) | Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis | Fix a server crash when loading an ACL file containing a selector definition with an unmatched parenthesis | | #4489 | `7.2` (Valkey 7.2.15) | Fix cluster config saving to avoid publishing truncated `nodes.conf` files, losing the startup lock after the first save, and failing every save on SMB filesystems such as Azure Files; the lock now lives on a separate `nodes.conf.lock` file | Fix cluster config saving by locking a separate `nodes.conf.lock` file, fixing crash loops on SMB filesystems such as Azure Files and restoring protection against two nodes sharing one config | | #4823 | `7.2` (Valkey 7.2.15) | Fix `LSET` on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error | Fix `LSET` on 64-bit builds modifying the wrong element instead of returning an error for very large out-of-range indexes | </details> *Generated by valkey-ci-agent. Review before merging into the release line.* --------- Signed-off-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Signed-off-by: Sarthak Aggarwal <[email protected]> Co-authored-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Co-authored-by: Sarthak Aggarwal <[email protected]> Co-authored-by: Roshan Khatri <[email protected]>
utils/reply-schema-linterpins fast-uri 3.1.0 transitively via ajv, flagged by CVE-2026-6321, CVE-2026-6322, CVE-2026-13676, CVE-2026-16221 and CVE-2026-18446.Bumped to 3.1.6, the newest release still inside ajv's
^3.0.1range, sopackage.jsonis unchanged.The lockfile was regenerated with
npm update fast-uri --package-lock-onlyrather than hand-edited.Verified locally:
npm ci --ignore-scriptson an empty cache installs with noEINTEGRITY,npm auditreports 0 vulnerabilities, the linter exits 0 oversrc/commands(398 of 427 command entries carry areply_schemaand are compiled), and a deliberately corrupted schema still exits 1.