Skip to content

fix!: Remove url: import feature - #2456

Merged
aklinker1 merged 5 commits into
wxt-dev:majorfrom
nishu-murmu:chore/remove-url-feature
Jul 26, 2026
Merged

aklinker1 merged 5 commits into
wxt-dev:majorfrom
nishu-murmu:chore/remove-url-feature

Conversation

@nishu-murmu

Copy link
Copy Markdown
Collaborator

Overview

Since there was the risk of supply chain attack it was better to remove this feature.

Manual Testing

Related Issue

This PR closes #2262

@netlify

netlify Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit b5669dc
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a4227a851758b00092b91b2
😎 Deploy Preview https://deploy-preview-2456--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Jun 29, 2026
@aklinker1 aklinker1 changed the title fix: removed url: import feature. fix!: removed url: import feature. Jun 29, 2026
@aklinker1

Copy link
Copy Markdown
Member

This needs to target the major branch since it's a breaking change.

@nishu-murmu
nishu-murmu changed the base branch from main to major June 29, 2026 14:14
@nishu-murmu
nishu-murmu requested a review from Timeraa as a code owner June 29, 2026 14:14
@nishu-murmu
nishu-murmu marked this pull request as draft July 1, 2026 06:55
@PatrykKuniczak

PatrykKuniczak commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

I think it shouldn't be fix, but i'm not sure, feat is good here, tricky one.

There's also chore, but i don't know if it's good there.
But hymmm, feat??

@aklinker1
aklinker1 force-pushed the major branch 2 times, most recently from bb5a6fd to 13508fe Compare July 26, 2026 01:18
@aklinker1

Copy link
Copy Markdown
Member

I think it shouldn't be fix, but i'm not sure, feat is good here, tricky one.

There's also chore, but i don't know if it's good there. But hymmm, feat??

I'd probably go with fix - we're not adding a feature, and we are "fixing" a security vulnerability. Don't really care though, it's a breaking change.

Comment thread docs/guide/resources/migrate.md Resolved
@aklinker1 aklinker1 changed the title fix!: removed url: import feature. fix!: Remove url: import feature Jul 26, 2026
@aklinker1
aklinker1 marked this pull request as ready for review July 26, 2026 03:05
@aklinker1

Copy link
Copy Markdown
Member

Failing tests are from the major branch, ignoring them and merging.

@aklinker1
aklinker1 merged commit b20ecc6 into wxt-dev:major Jul 26, 2026
9 of 11 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for helping make WXT better!

aklinker1 added a commit that referenced this pull request Jul 26, 2026
@aeharding

Copy link
Copy Markdown
Contributor

Hi! This is a breaking change for my use case. Why can't we just add an integrity sha and fail loudly if it changes? If its OK I will revert this PR and add an integrity check, @aklinker1?

aeharding added a commit to aeharding/wxt that referenced this pull request Jul 26, 2026
Reverts wxt-dev#2456. URL imports work again, but every import must now pin an
integrity hash — a bare `url:` import is a build error with no opt-out.

    import 'url#sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=:https://code.jquery.com/jquery-3.7.1.slim.min.js';

sha256/384/512 are supported, in base64 (the SRI format CDNs publish) or
hex. This addresses the supply chain risk from wxt-dev#2229 and wxt-dev#2262: a
compromised CDN can no longer put code into a build, since content that
fails verification is never bundled or cached.

- Unverified downloads are never written to the cache
- Cached content is verified on read, so a poisoned cache can't slip through
- A tampered download falls back to a verified cache entry when one exists
- Errors print expected vs received hashes, in the encoding that was pinned
- A missing hash prints the exact import line to paste

Implements the checksum request from wxt-dev#1924.
aeharding added a commit to aeharding/wxt that referenced this pull request Jul 26, 2026
Reverts wxt-dev#2456. URL imports work again, but every import must now pin an
integrity hash. A bare `url:` import is a build error with no opt-out.

    import 'url#sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=:https://code.jquery.com/jquery-3.7.1.slim.min.js';

sha256/384/512 are supported, in base64 (the SRI format CDNs publish) or
hex. This addresses the supply chain risk from wxt-dev#2229 and wxt-dev#2262: a
compromised CDN can no longer put code into a build, since content that
fails verification is never bundled or cached.

- Unverified downloads are never written to the cache
- Cached content is verified on read, so a poisoned cache can't slip through
- A tampered download falls back to a verified cache entry when one exists
- Errors print expected vs received hashes, in the encoding that was pinned
- A missing hash prints the exact import line to paste

Implements the checksum request from wxt-dev#1924.
@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

@aeharding I know, that step, can be frustrating.
But we don't have enough energy to maintain that thing.

That's vulnerable thing, which need to be carefully reviewed and tested, and nobody from current maintainers, don't want to take that responsibility, especially directly before v1.

@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

@aeharding There's also problem with tests, sometimes it falls(on Windows) and i don't know why, and i don't have enough time now, to investigate it.

@aeharding

Copy link
Copy Markdown
Contributor

@PatrykKuniczak Can you point me at a test failure? Id be happy to take a look.

I just opened #2514 with a proposal to mandate integrity. Let me know what you think.

@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

@aeharding It have been happening randomly for time to time, i don't know what's the clue.

But if you want to have #2514, you need to figure it out, because as i've mentioned we don't have enough energy and @aklinker1 merging very rary.

@aeharding

Copy link
Copy Markdown
Contributor

@PatrykKuniczak I'm happy to help, I'll try to root cause that one, ty!

@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

@aeharding Wait cowboy, wait for @aklinker1 approval.
If he won't want to merge it/back download feature alive, your work will be only for you.

Are you maybe want to be a part of our team in future and develop with us?
Maybe that can encourage Aaron a little.

aklinker1 added a commit that referenced this pull request Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the url: import feature

4 participants