Skip to content

Instantly share code, notes, and snippets.

View unscripted's full-sized avatar

Cullen Whitmore unscripted

View GitHub Profile
@unscripted
unscripted / axios-compromised-versions-security-check.md
Created April 1, 2026 03:52
Security checklist for detecting and removing compromised axios versions (1.14.1 / 0.30.4)

Security checklist for detecting and removing compromised axios versions (1.14.1 / 0.30.4)

What happened

On March 31, 2026, an attacker hijacked the npm account of axios's primary maintainer (jasonsaayman) and published two backdoored versions of the package — [email protected] and [email protected] — within 39 minutes of each other, covering both the current 1.x and legacy 0.x release branches simultaneously.

axios is one of the most widely used JavaScript libraries in existence, with over 100 million weekly downloads. The attack was not opportunistic — it was precision. The malicious dependency was staged 18 hours in advance, three platform-specific payloads were pre-built, and every artifact was designed to self-destruct after execution.

The malicious versions didn't modify axios itself. Instead, they injected a fake dependency — [email protected] — whose sole purpose was to run a postinstall script the moment anyone ran npm install. That script silently contacted a command-and-contr

@unscripted
unscripted / init.php
Created December 18, 2012 06:25
Fixes issue in Simplex theme where shortcoder media button disappears after upgrading WordPress to 3.5. Former method was using media_buttons_context. That method was deprecated in 3.5. (http://core.trac.wordpress.org/ticket/22559) This file is located @Simplex/core/shortcoder/init.php
<?php
add_action('media_buttons' , 'ts_shortcoder_button', 11);
function ts_shortcoder_button(){
$shortcoder_button_image = THEME_CORE_URL . '/images/shortcoder_icon.png';
$shortcoder_button = ' %s';
echo '<a title = "' . __('Insert a Shortcode' , TS_DOMAIN) . '" href="' . THEME_CORE_URL . '/shortcoder/shortcoder.php?init=true&TB_iframe=true&width=500" class="thickbox"><img src = "' . $shortcoder_button_image . '" /></a>';
}