Safeguard
Tag

input-validation

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

62 articles

AppSec

SQL Injection Test: How to Safely Check Your App for SQLi

A SQL injection test proves whether user input can reach your database as code. Here is how to test your own applications responsibly, read the results, and fix what you find.

Aug 20, 20257 min read
Security

Regex DDoS (ReDoS): How Catastrophic Backtracking Takes Down a Service

A regex DDoS, or ReDoS, weaponizes a slow regular expression so a short input pins a CPU core for seconds or minutes. Here is why it happens and how to detect and fix it.

Aug 14, 20255 min read
DevSecOps

Validating URLs Safely in Python with the validators Library

The Python validators library's url validator is a quick way to check URLs, but older regex-based versions carried a ReDoS risk. Here's how to use it safely.

Aug 5, 20256 min read
Open Source

Joi npm: A Security Review and Safe Usage Guide

The joi npm package is the widely used JavaScript schema validation library. Here is its maintenance status, the @hapi/joi migration, and how to use it safely.

Jul 19, 20255 min read
Open Source

qrcode.react Security: Safe QR Code Rendering in React

A security guide to the qrcode.react library, the risks of encoding untrusted data into QR codes, and how to render them safely in a React app.

Jul 2, 20255 min read
Security

URLEncoder in Java: Correct Usage and Its Security Pitfalls

URLEncoder in Java is easy to misuse. Here is when it applies, why it is not URL encoding for whole URLs, and the injection risks of getting it wrong.

Jul 1, 20255 min read
Security

JavaScript Not Equal (!= vs !==): Why the Wrong One Is a Security Bug

The JavaScript not equal operators != and !== look interchangeable but aren't. Loose comparison triggers type coercion that has caused real auth bypasses. Here's how to compare safely.

Jun 24, 20256 min read
DevSecOps

How to Build a Secure Python URL Validator (and Avoid SSRF)

A Python URL validator has to do more than match a regex. Here is how to validate URLs safely, block SSRF, and pick between urllib, validators, and Pydantic.

Jun 19, 20256 min read
AppSec

Python: Check If a String Is a Valid URL (Safely)

How to check if a string is a URL in Python using urllib.parse, when to add validators, and why parseable does not mean safe for the URL you are about to fetch.

Jun 17, 20256 min read
Open Source

yup npm: A Security Review of the Schema Validation Library

The yup npm package is a mature, actively maintained schema validation library, and it is safe to use, but validation belongs on the server and yup schemas need to be written defensively. Here is the review.

Jun 16, 20256 min read
AppSec

SQL Injection for Beginners: How It Works and How to Stop It

SQL injection for beginners, explained without the hype: what the attack actually is, why string-built queries cause it, and the one habit — parameterized queries — that closes the door.

Jun 9, 20256 min read
Security

What Is Literal SQL Statement Injection, and How Do You Stop It?

Literal SQL statement injection happens when user input is concatenated straight into a query string. Here is how the attack works and how to shut it down.

May 27, 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.

input-validation (Page 3) — Safeguard Blog