security: remove polyfill.io script tag#351
Open
sinatragianpaolo wants to merge 1 commit intodevelopfrom
Open
Conversation
The polyfill.io domain was compromised in 2024 and used to inject malicious JavaScript via CDN responses. All loaded features (replaceAll, IntersectionObserver, map, reduce) are natively supported by all modern browsers — no alternative needed.
|
Currents Tests: Tryber.me tests failed after 3m 46.8s Run Details
This message was posted automatically by
currents.dev | Integration Settings
|
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
polyfill.ioCDN script tag frompublic/index.htmlThe polyfill.io domain was sold in 2024 to an external company that started injecting malicious JavaScript into CDN responses, targeting mobile users with redirects to scam sites. The original library author publicly recommended against using it, and AGID published an official advisory.
All loaded features (
String.prototype.replaceAll,IntersectionObserver,Array.prototype.map,Array.prototype.reduce) are natively supported by all browsers released in the last 5 years — no alternative polyfill is needed.Reference: https://www.agid.gov.it/it/notizie/polyfillio-il-cert-agid-consiglia-alle-pa-che-lo-utilizzano-sui-loro-siti-di-rimuoverlo
Test plan
replaceAll,IntersectionObserver,map,reducestill work as expected