Skip to content

fix: require patched Joi version - #724

Merged
thymikee merged 1 commit into
mainfrom
fix/joi-prototype-pollution
Aug 21, 2026
Merged

fix: require patched Joi version#724
thymikee merged 1 commit into
mainfrom
fix/joi-prototype-pollution

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Require Joi 17.13.6 or newer in @rock-js/config to prevent prototype pollution through localized validation messages.

The reported PoC reproduces with Joi 17.13.3 and no longer reproduces with 17.13.6, which contains the upstream fix: prevent messages proto injection patch. This also adds a focused regression test and a patch changeset.

Upstream fix: hapijs/joi@8d0b808f3e87

Validation

  • ./node_modules/.bin/vitest run packages/config/src/lib/__tests__/schema.test.ts
  • ./node_modules/.bin/eslint packages/config/src/lib/__tests__/schema.test.ts
  • git diff --check

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
rock Ignored Ignored Preview Aug 21, 2026 5:59pm

Request Review

@thymikee
thymikee force-pushed the fix/joi-prototype-pollution branch from c051588 to f562feb Compare August 21, 2026 17:58
@thymikee
thymikee marked this pull request as ready for review August 21, 2026 17:59
@thymikee
thymikee merged commit dce336d into main Aug 21, 2026
10 checks passed
@thymikee
thymikee deleted the fix/joi-prototype-pollution branch August 21, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant