Files
tmail-flutter/server
Benoit TELLIERandClaude Opus 5.5 931eeac3c6 build(web): vendor pica and dotlottie-player, stop loading from unpkg
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>
2026-09-25 10:55:06 +02:00
..