Safeguard
Tag

javascript

Safeguard articles tagged "javascript" — guides, analysis, and best practices for software supply chain and application security.

93 articles

Supply Chain

webpack-bundle-analyzer: Find Bloat and Risky Dependencies in Your Bundle

webpack bundle analyzer turns your build output into a zoomable treemap. Used well, it finds not just bloat but duplicated packages, surprise transitive dependencies, and code you never meant to ship.

Apr 9, 20257 min read
Open Source

babel-core Security: Known CVEs and How to Stay Patched

babel-core is safe when current, but its dependency chain has carried a code-execution CVE and a ReDoS issue. Here is what to patch and why re-compiling matters.

Apr 3, 20255 min read
Supply Chain Security

npm Supply Chain Attacks Q1 2025: Dependency Confusion, Typosquatting, and Maintainer Takeovers

The first quarter of 2025 saw a sharp increase in npm supply chain attacks. We catalog the major incidents and analyze the evolving techniques.

Apr 1, 20256 min read
Open Source

FileSaver.js (file-saver): Package Review and Download Security

The file saver npm package still powers client-side downloads in millions of builds, but it has not shipped a release since 2020. Here is what that means for your dependency tree.

Mar 18, 20257 min read
AppSec

jQuery 3.6.0 Vulnerabilities: What Scanners Flag and How to Fix

jQuery v3.6.0 vulnerabilities show up in scan reports constantly, yet the core library has no CVE of its own at that version. Here is what your scanner is actually reacting to and how to clear it.

Mar 18, 20256 min read
DevSecOps

What Is a Node.js Backend? A Security Guide for Server-Side JavaScript

A practical look at building a Node.js backend that holds up in production, from dependency risk to input validation, with real config you can copy.

Mar 18, 20256 min read
Open Source

Is the Cheerio npm Package Safe? A Security Review

A practitioner's look at the cheerio npm package: what it does, where its real security risk lives, and how to use it safely in production scrapers and parsers.

Mar 18, 20256 min read
Open Source

npm rollup: A Security Review and Safe Usage Guide

A practical look at what installing rollup from npm means for your supply chain, the DOM clobbering XSS bug you should know about, and how to pin a safe version.

Mar 18, 20256 min read
Security

Mobile Number Validation in JavaScript: A Security-Aware Guide

Mobile number validation in JavaScript is easy to get wrong with a naive regex. Here is how to validate phone numbers correctly, safely, and without ReDoS.

Mar 5, 20255 min read
Open Source

@microsoft/fetch-event-source: Robust SSE Streams in the Browser

The fetch event source library fixes everything the native EventSource API refuses to do: POST bodies, auth headers, and retry logic you actually control.

Feb 27, 20257 min read
AppSec

URL Validation in JavaScript: Regex Patterns and Safer Options

URL validation regex in JavaScript is tempting but brittle. Here are patterns that work, the ones that cause ReDoS, and why the URL constructor is usually the better tool.

Feb 24, 20256 min read
Open Source

core-js 2.6.12: Vulnerabilities, EOL Status, and Upgrading to v3

Searching for core-js 2.6.12 vulnerabilities turns up no CVEs — the finding is the abandoned v2 line itself. What the deprecation actually means and how to migrate to core-js 3 cleanly.

Feb 21, 20256 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

javascript (Page 6) — Safeguard Blog