Repository navigation
Remove malicious polyfill.io dependency - #8
Merged
Merged
Conversation
The polyfill.io CDN was sold in mid-2024 to a malicious operator that served credential-phishing/redirect malware to visitors. This line was part of the legacy MathJax setup recipe and is not required: MathJax 3 (tex-mml-chtml.js) runs natively on all modern browsers, so the es6 polyfill is unnecessary. Removing it eliminates the supply-chain risk. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 tasks
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.
Summary
Removes the
https://polyfill.io/v3/polyfill.min.js?features=es6script fromextra_javascriptinmkdocs.yml.The polyfill.io CDN domain was sold in mid-2024 to a malicious operator that injected credential-phishing / malicious-redirect code into the served script, affecting an estimated 100,000+ sites. This blog included it as part of the legacy MathJax setup recipe, which means visitors have been served the compromised script.
Why it's safe to remove
tex-mml-chtml.js) runs natively on all modern browsers; thees6polyfill only ever backfilled legacy browsers like IE11.mkdocs.yml.Verification
mkdocs build: 0 externalpolyfill.ioreferences and 0 HTML files reference polyfill (remaining matches are only in mkdocs-material's own local search-worker sourcemap — harmless theme internals).Notes
site/is gitignored and deployed to thedeploybranch, so the malicious script clears on the next deploy.mkdocs-materialis at 9.6.22 vs latest 9.7.6 (the~= 9.6pin already permits 9.7.x) — not changed here.🤖 Generated with Claude Code