Skip to content

Replace compromised polyfill.io with Cloudflare mirror - #43

Merged
ChristopherRabotin merged 2 commits into
masterfrom
fix-polyfill-exploit-2596601502515802253
Jun 29, 2026
Merged

Replace compromised polyfill.io with Cloudflare mirror#43
ChristopherRabotin merged 2 commits into
masterfrom
fix-polyfill-exploit-2596601502515802253

Conversation

@ChristopherRabotin

Copy link
Copy Markdown
Member

This change addresses the polyfill.io supply chain attack by replacing the compromised https://polyfill.io/v3/polyfill.min.js?features=es6 script with a safe alternative hosted by Cloudflare: https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6.

I verified the fix by:

  1. Building the site locally using mkdocs build.
  2. Running a local server with mkdocs serve.
  3. Using Playwright to capture and inspect screenshots of the homepage and a math-heavy page.
  4. Confirming that math notation (which depends on the polyfill/MathJax) renders correctly and no malicious login prompts appear.

I also ensured that reqs.txt is preserved, as it is essential for the build environment.

Fixes #42


PR created automatically by Jules for task 2596601502515802253 started by @ChristopherRabotin

The polyfill.io domain was recently sold and has been linked to a supply chain attack involving malicious script injections (e.g., fake login prompts).

This commit updates mkdocs.yml to use the safe Cloudflare mirror for polyfills, ensuring security while maintaining compatibility for older browsers.

Signed-off-by: Jules <jules@example.com>

Co-authored-by: ChristopherRabotin <4823784+ChristopherRabotin@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the polyfill.io URL in mkdocs.yml to use cdnjs. The reviewer suggests removing the polyfill dependency entirely, as modern browsers natively support ES6 features, which improves performance and mitigates potential security risks.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread mkdocs.yml Outdated
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 5282977):

https://nyx-space--pr43-fix-polyfill-exploit-c35zgp20.web.app

(expires Mon, 06 Jul 2026 06:28:31 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ecf6068ed4b2d3d429c02e3ebe5890356e4315eb

@ChristopherRabotin
ChristopherRabotin merged commit 6dbcecb into master Jun 29, 2026
2 checks passed
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.

Polyfill.io supply chain attack

1 participant