Safeguard
Tag

input-validation

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

62 articles

Open Source

class-validator: Security, Health, and Safe Usage in Production

class-validator powers input validation in most NestJS apps, but its defaults burned teams once before. Here is its real security history and how to configure it safely.

Mar 14, 20256 min read
AppSec

Open Redirect Vulnerabilities: What They Are and How to Fix Them

An open redirect vulnerability fix is usually a ten-line change, but the bug keeps shipping because redirects hide in login flows, tracking links, and OAuth callbacks. Here is how to find and close them.

Mar 14, 20257 min read
DevSecOps

How to Validate a URL in Python Safely

A practical guide to validating URLs in Python without opening SSRF or injection holes — what the standard library gives you, where it fails, and how to build a safe validator.

Mar 11, 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
AppSec

SQL Injection Tutorial: How It Works and How to Stop It

This SQL injection tutorial explains the attack conceptually and focuses on what actually matters: detecting the flaw in your own code and closing it with parameterized queries.

Mar 4, 20256 min read
AppSec

How to Avoid SQL Injection: A Developer's Guide

To avoid SQL injection, never build queries by concatenating user input, use parameterized queries everywhere, and treat every input as untrusted. Here's the defensive playbook.

Mar 4, 20257 min read
Open Source

react-number-format: A Security Guide for Safe Input Handling

react-number-format is a popular library for formatting numeric and masked inputs. Here is how to use it without opening XSS or validation gaps.

Feb 27, 20255 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
AppSec

WAF SQL Injection Protection: What It Catches and What It Misses

A WAF can block many SQL injection attempts at the edge, but treating it as your only defense is how breaches happen. Here is what WAF SQL injection rules actually do.

Feb 24, 20255 min read
AppSec

SQL Injection Demo: How the Attack Works and How to Stop It

A practical SQL injection demo that shows how unsanitized input reaches the database, why it works, and the one fix that reliably closes the hole.

Feb 11, 20256 min read
Security

Input Validation in Cyber Security: Why It Matters and How to Do It

Input validation is a foundational cyber security control that rejects malformed data at the boundary, cutting off entire classes of injection attacks before they start.

Jan 28, 20255 min read
Vulnerabilities

SSRF Attacks: How Server-Side Request Forgery Works

SSRF tricks a server into making requests an attacker controls — reaching internal services, cloud metadata endpoints, and data no external user should touch. Here is how it works and how to stop it.

Sep 17, 20246 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.

input-validation (Page 5) — Safeguard Blog