A maintainer sabotages colors.js and faker.js
ATG-class event8 January 2022
The maintainer of two popular npm packages published versions that broke the software using them, one printing an endless stream of text and the other emptied. Thousands of projects were affected.
- Position
- The legitimate maintainer of two widely used packages
- Reach
- colors: over 20 million weekly downloads; faker: over 2.8 million
- Category
- Open-Source Maintainer Infiltration
What happened
On 8 January 2022 Marak Squires, maintainer of colors.js and faker.js, published new versions of both. The colors release added an infinite loop that printed garbled text. The faker release removed the working code. colors had more than 20 million weekly downloads and nearly 19,000 dependent packages, and builds that pulled the new versions broke, including Amazon's cloud development kit. Squires had warned in 2020 that he would stop doing free work for large companies. npm reverted the releases, and the community forked faker.
The ATG nexus
The person with every right to publish used that right to cause harm. No hack or stolen credential was involved, and no review stood between his decision and thousands of builds. The research names this exposure The Open-Source Open Door, and lists the lone maintainer among the actors who can be in position: someone who answers to no organization and whose code many organizations run unexamined.
Limits of the comparison
The sabotage broke software loudly and stole nothing. It hit build and run environments, not the screens of end users.
On this site
- Whitepaper, Chapter 9: Open Source and the Path to the Client Runtime
- Introduction: Anyone in Position
- Concept: The Open-Source Open Door
- Concept: The Cost of Free