Safeguard
Tag

javascript

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

93 articles

Open Source

@babel/plugin-transform-runtime: What It Does and When You Need It

The babel plugin transform runtime deduplicates Babel's injected helpers and keeps polyfills out of the global scope. Here is what it actually changes in your output, and when it earns its place.

Feb 12, 20256 min read
Open Source

Is the npm Luxon Package Safe to Use? A Security Review

The npm Luxon package is actively maintained and safe for current use, with one notable historical ReDoS advisory to be aware of. Here is the security picture.

Feb 11, 20255 min read
AppSec

DOM-Based XSS Attacks: How They Work and How to Prevent Them

A DOM based XSS attack executes entirely in the browser, which is why your server-side filters and access logs never see it. Here is how the source-to-sink flow works and what actually stops it.

Feb 11, 20257 min read
Open Source

core-js on npm: Security Review and Safe Usage

A security and sustainability review of core-js on npm: the postinstall history, the maintainer funding crisis, and how to keep this near-universal dependency safe.

Jan 29, 20256 min read
Security

JSON Patch Security: Prototype Pollution and Safe Usage

JSON Patch (RFC 6902) is a compact format for applying partial updates, but implementations like fast-json-patch have had prototype-pollution flaws. Here is how to use it safely.

Jan 28, 20255 min read
AppSec

The xss npm Package: Sanitizing HTML Input Correctly

The xss npm package is a whitelist-based HTML sanitizer for Node and the browser. It works well — when you sanitize in the right place, with the right whitelist, for the right output context.

Jan 27, 20257 min read
Supply Chain Security

Polyfill.io Supply Chain Attack: When a CDN Domain Changes Hands

A Chinese company acquired the polyfill.io domain and began injecting malicious code into websites that relied on the CDN, affecting over 100,000 sites. The attack exploited trust in third-party JavaScript.

Jun 25, 20246 min read
DevSecOps

Vite Build Tool Security Considerations

Vite has become the default build tool for a generation of JavaScript frameworks. Its plugin model, dev server, and dependency pre-bundling each carry distinct security implications worth understanding.

May 30, 20247 min read
Application Security

Prototype Pollution in JavaScript: Prevention Guide

Prototype pollution lets attackers modify the behavior of all JavaScript objects by injecting properties into Object.prototype. This guide covers exploitation techniques, real-world impact, and layered defenses.

Apr 5, 20246 min read
Secure Development

Node.js Permission Model: Restricting What Your Code Can Do

Node.js finally has an experimental permission model. It is a significant step toward containing supply chain attacks, but it has important limitations.

Mar 18, 20245 min read
Open Source Security

npm Registry Governance and the Security of node_modules

The npm registry serves billions of downloads per week. Its governance decisions directly impact the security of every Node.js application on the planet.

Jan 8, 20247 min read
Developer Security

Deno's Permission-Based Security Model: What It Gets Right and Where It Falls Short

Deno was built with security as a first-class concern, requiring explicit permissions for file, network, and environment access. Here is an honest assessment of what that model delivers in practice.

Nov 8, 20236 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 7) — Safeguard Blog