-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
lib,esm: handle bypass network-import via data: #53764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib,esm: handle bypass network-import via data: #53764
Conversation
|
Review requested:
|
|
The validation needs to accept H1 links as well. |
5c74da6 to
61b1f42
Compare
61b1f42 to
9dc1933
Compare
PR-URL: nodejs-private/node-private#522 Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2092749 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> CVE-ID: CVE-2024-22020
9dc1933 to
15c2d8d
Compare
| return { __proto__: null, url: parsed.href }; | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unrelated line removal
mcollina
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Commit Queue failed- Loading data for nodejs/node/pull/53764 ✔ Done loading data for nodejs/node/pull/53764 ----------------------------------- PR info ------------------------------------ Title lib,esm: handle bypass network-import via data: (#53764) Author Rafael Gonzaga <rafael.nunu@hotmail.com> (@RafaelGSS) Branch RafaelGSS:backport-network-import-via-data -> nodejs:main Labels esm, author ready, needs-ci Commits 1 - lib,esm: handle bypass network-import via data: Committers 1 - RafaelGSS <rafael.nunu@hotmail.com> PR-URL: https://github.com/nodejs/node/pull/53764 Fixes: https://hackerone.com/bugs?subject=nodejs&report_id=2092749 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/53764 Fixes: https://hackerone.com/bugs?subject=nodejs&report_id=2092749 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 08 Jul 2024 18:48:45 GMT ✔ Approvals: 4 ✔ - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/53764#pullrequestreview-2164507162 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/53764#pullrequestreview-2165404578 ✔ - Marco Ippolito (@marco-ippolito) (TSC): https://github.com/nodejs/node/pull/53764#pullrequestreview-2165583758 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/53764#pullrequestreview-2165697861 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-07-08T23:19:20Z: https://ci.nodejs.org/job/node-test-pull-request/60188/ - Querying data for job/node-test-pull-request/60188/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 53764 From https://github.com/nodejs/node * branch refs/pull/53764/merge -> FETCH_HEAD ✔ Fetched commits as fc233627ed44..15c2d8d75ed8 -------------------------------------------------------------------------------- [main ad0ac2de27] lib,esm: handle bypass network-import via data: Author: RafaelGSS <rafael.nunu@hotmail.com> Date: Wed Jan 10 14:50:18 2024 -0300 3 files changed, 164 insertions(+), 64 deletions(-) create mode 100644 test/fixtures/es-modules/import-data-url.mjs ✔ Patches applied -------------------------------------------------------------------------------- ⚠ Found Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>, skipping.. ⚠ Found Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>, skipping.. --------------------------------- New Message ---------------------------------- lib,esm: handle bypass network-import via data:https://github.com/nodejs/node/actions/runs/9907895685 |
|
Landed in 24648b5 |
PR-URL: https://github.com/nodejs-private/node-private/pull/522 Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2092749 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> CVE-ID: CVE-2024-22020 PR-URL: nodejs#53764 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit didn't land cleanly on
mainfromv22.x110902f. So, I'm opening a manual PR to make sure we won't break anything.cc: @aduh95 @GeoffreyBooth