Skip to content

fix: add a version resolution for cookie in react native llama example app and use yarn as the package manager - #7218

Merged
facebook-github-bot merged 1 commit into
pytorch:mainfrom
hietalajulius:fix/rnllama-dependency-resolution-cookie
Dec 6, 2024
Merged

facebook-github-bot merged 1 commit into
pytorch:mainfrom
hietalajulius:fix/rnllama-dependency-resolution-cookie

Conversation

@hietalajulius

@hietalajulius hietalajulius commented Dec 6, 2024 •

Copy link
Copy Markdown
Contributor

Summary

Addresses #7134 (comment)

TL;DR: remix-run/server-runtime (which is a downstream dependency of the example react native app), depends on cookie (version ^0.6.0) which has a vulnerability prior to 0.7.0, this PR adds a resolution to >=0.7.0. Also switches to using yarn instead of npm.

Test plan

before resolution

$ yarn audit
yarn audit v1.22.22
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low           │ cookie accepts cookie name, path, and domain with out of     │
│               │ bounds characters                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cookie                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=0.7.0                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ expo-router                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ expo-router > @expo/server > @remix-run/node >               │
│               │ @remix-run/server-runtime > cookie                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1099846                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
1 vulnerabilities found - Packages audited: 1067
Severity: 1 Low
✨  Done in 0.47s.

after resolution

$ yarn audit
yarn audit v1.22.22
0 vulnerabilities found - Packages audited: 1067
✨  Done in 0.43s.

@pytorch-bot

pytorch-bot Bot commented Dec 6, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7218

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 70b211e with merge base 63238ab (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 6, 2024
@hietalajulius

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "topic: not user facing"

@hietalajulius hietalajulius changed the title fix: add a version resolution for cookie in react native and use yarn as the package manager fix: add a version resolution for cookie in react native llama example app and use yarn as the package manager Dec 6, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@shoumikhin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
facebook-github-bot merged commit 00afd5e into pytorch:main Dec 6, 2024
@kirklandsign

Copy link
Copy Markdown
Contributor

Hi @hietalajulius could you please update all packages to latest? Specifically, undici in deps to 6.21.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants