Commit b7f44ec
committed
chore: block compromised npm releases & pin known-good versions (2025-09-08)
Add security measures to prevent malicious package versions:
✅ Added Yarn constraints blocklist (.yarn/constraints.pro)
- Blocks 19 malicious versions of compromised packages
- Prevents installation of known bad releases
- Covers color, chalk, and related dependency chains
✅ Pinned exact safe versions via resolutions (package.json)
- color: 4.2.3 (last known good)
- color-string: 1.9.1 (last known good)
- color-convert: 2.0.1 (last known good)
- color-name: 1.1.4 (last known good)
- chalk: 4.1.2 (last known good)
- Plus 13 additional related packages
✅ Updated Yarn configuration
- Added constraints plugin
- Configured for security enforcement
- Updated lockfile with safe versions
🎯 Security Benefits:
- Prevents qix hack
- Blocks malicious postinstall scripts
- Ensures reproducible, secure builds
- Centralized security policy enforcement1 parent 4546f26 commit b7f44ec
4 files changed
Lines changed: 209 additions & 2792 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
97 | 118 | | |
0 commit comments