mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
index.html loaded pica from unpkg.com without any version (silently following new releases) and dotlottie-player without Subresource Integrity. Both run in the origin that holds the user's tokens, so a compromise of the npm packages or of the CDN meant arbitrary script for every user; each page load also disclosed the user's IP to a third party. Vendor the exact files currently served (pica 10.0.3, MIT; @dotlottie/player-component 2.7.12 with its lazily imported chunks, MIT) under web/js, and serve .mjs files as JavaScript in nginx (module scripts are refused when served as application/octet-stream). sha256: 6ed5ed21172e715a9c20e1c1c0488beac5aa23f268454e51c6541473cb431708 pica-10.0.3.min.js 65acaef008197ae94540f848ba3e7aaa527370e18f1356518a91157bbe434c71 dotlottie-player.mjs Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>