Skip to content

Pin wasm-feature-detect with SRI - #2419

Draft
JasonGross wants to merge 1 commit into
masterfrom
codex/fix-2520-pin-web-dependency
Draft

Pin wasm-feature-detect with SRI#2419
JasonGross wants to merge 1 commit into
masterfrom
codex/fix-2520-pin-web-dependency

Conversation

@JasonGross

Copy link
Copy Markdown
Collaborator

Summary

Pin the web UI’s wasm-feature-detect dependency to version 1.9.0 and add SHA-384 subresource integrity with anonymous CORS.

This prevents the published page from executing a mutable, unversioned CDN response while keeping the change to a single script tag. This fixes Scrutineer finding #2520.

Testing

  • verified the pinned unpkg response is byte-identical to the authoritative npm package artifact
  • verified the SHA-384 digest matches the integrity attribute
  • confirmed no unversioned or unprotected remote script remains
  • git diff --check

The page still depends on unpkg availability, but the browser will execute only the verified 1.9.0 bytes.

Authorship note: this was researched and written by an AI coding agent
(OpenAI Codex), working on Jason Gross's behalf; Jason reviews what is
posted from this account.

Load wasm-feature-detect 1.9.0 from an exact unpkg URL with a verified SHA-384 integrity attribute and anonymous CORS, replacing the mutable unversioned script reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant