chore(deps): force joi >= 18.2.1 to fix CVE-2026-48038 (Dependabot #253)#14841
Merged
Conversation
joi < 18.2.1 has an uncaught RangeError on deeply nested input through recursive link() schemas (GHSA-q7cg-457f-vx79, CVE-2026-48038, DoS, medium). joi is a transitive dependency pulled in only by @react-native-community/cli-config and @react-native-community/cli-types ("joi": "^17.2.1"). There is no 17.x patch; the fix lands in 18.2.1, a major bump. Pin via a yarn resolution, matching the existing pattern for other security overrides in this block. node>=20 engine requirement of joi 18 is already satisfied by the repo toolchain.
|
ahmedhamouda78
approved these changes
Jun 12, 2026
bobbor
approved these changes
Jun 12, 2026
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.
Description
Resolves Dependabot alert #253 — CVE-2026-48038 / GHSA-q7cg-457f-vx79 (medium, DoS).
joiversions< 18.2.1throw an uncaughtRangeErroron deeply nested input through recursivelink()schemas, which can crash a process that validates untrusted input without a surrounding try/catch.Exposure in this repo
joiis a transitive, runtime dependency (yarn.lock), pulled in only by React Native dev tooling:@react-native-community/cli-config→joi@^17.2.1@react-native-community/cli-types→joi@^17.2.1It resolved to
17.13.3. There is no 17.x patch; the fix first lands injoi@18.2.1(a new major).Fix
Pin
joito^18.2.1via aresolutionsentry in the rootpackage.json, matching the existing pattern used for other security overrides in that block (fast-xml-parser,form-data,qs,serialize-javascript, …), and regenerateyarn.lock.joi@^17.2.1, joi@^18.2.1now both resolve to18.2.1; no vulnerable 17.x remains in the lockfile.node >= 20, already satisfied by the repo toolchain.object/string/validate/etc.) is unchanged in v18.Testing
yarn installregenerates a consistent lockfile (joi 18.2.1 + its v18 dependency tree:@hapi/address,@hapi/formula,@hapi/hoek@^11,@hapi/topo@^6,@standard-schema/spec, …).