<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Javascript on Daffa Abhipraya</title><link>https://blog.abhipraya.dev/tags/javascript/</link><description>Recent content in Javascript on Daffa Abhipraya</description><generator>Hugo</generator><language>en-us</language><copyright>© Daffa Abhipraya</copyright><lastBuildDate>Fri, 04 Dec 2026 00:00:00 +0700</lastBuildDate><atom:link href="https://blog.abhipraya.dev/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>What I Changed the Morning After TanStack Was Compromised</title><link>https://blog.abhipraya.dev/posts/npm-install-cooldown-after-tanstack/</link><pubDate>Wed, 13 May 2026 00:00:00 +0700</pubDate><guid>https://blog.abhipraya.dev/posts/npm-install-cooldown-after-tanstack/</guid><description>&lt;p&gt;On May 11, 2026, 84 malicious versions of TanStack packages went up on npm. Our team&amp;rsquo;s app, an invoicing tool for a university project, used two of them directly: &lt;code&gt;@tanstack/react-router&lt;/code&gt; and &lt;code&gt;@tanstack/react-query&lt;/code&gt;. Nobody on the team had run an install that pulled a new version during the window, so nothing bad landed. The next morning I made two changes so that luck would not be the plan next time.&lt;/p&gt;
&lt;h2 id="what-happened"&gt;
 &lt;a class="anchor" href="#what-happened" data-anchor="what-happened" aria-hidden="true"&gt;#&lt;/a&gt;
 What Happened
&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://snyk.io/blog/tanstack-npm-packages-compromised/"&gt;Snyk&amp;rsquo;s write-up&lt;/a&gt; has the full chain, so here is the short version. The attacker never stole an npm password. Their code got into TanStack&amp;rsquo;s own release workflow through a GitHub Actions pull request trigger and a poisoned pnpm cache, then read the workflow&amp;rsquo;s publishing token out of the runner&amp;rsquo;s memory. Between 19:20 and 19:26 UTC, that token published 84 versions across 42 packages.&lt;/p&gt;</description></item></channel></rss>