Safeguard
Tag

deserialization

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

64 articles

AppSec

Python Pickle: Reading, Writing, and Why It Is a Security Risk

How to pickle an object in Python and read a pickle file back, and the reason the standard library itself warns you never to unpickle data you did not produce.

Jun 30, 20257 min read
Open Source

npm js-yaml: A Security Review and Safe Usage Guide

npm js-yaml is the standard YAML parser for Node.js. Its history includes real code-execution bugs, and how you call it still decides whether your app is safe.

Jun 11, 20256 min read
DevSecOps

Python pickle.dump Explained, and Why It Can Get You Popped

How Python's pickle.dump actually works, a runnable example, and the deserialization risk that turns a saved object into remote code execution.

May 27, 20256 min read
DevSecOps

Python Pickle Load: A Security Guide

Calling python pickle load on data you do not fully control can execute arbitrary code. Here is why, and what to use instead.

May 27, 20255 min read
Security

The POJO Class in Java: A Security Guide to Plain Objects

A POJO class in Java looks harmless — just fields and getters — but the moment it becomes a deserialization target it turns into an attack surface. Here is how plain objects go wrong and how to keep them safe.

May 6, 20257 min read
DevSecOps

Advanced Python: The Security-Focused Patterns Senior Developers Should Master

Advanced Python is not about clever one-liners. The patterns that separate senior engineers are the ones that keep code safe: safe deserialization, controlled subprocess calls, and disciplined dependency use.

Apr 30, 20256 min read
AppSec

Log4j 1.2.17 Vulnerabilities: Why Log4j 1.x Cannot Be Fixed

The only real log4j 1.2.17 vulnerability fix is migrating off the 1.x line — it reached end of life in 2015 and its RCE-class CVEs will never be patched. Here is the case and the path.

Apr 29, 20256 min read
Security

The Most Common Java Security Flaws and How to Fix Them

A practitioner's tour of the Java security flaws that actually break production systems — deserialization, injection, XXE, and the dependency risks that scanners miss.

Apr 17, 20257 min read
DevSecOps

Pickling in Python: A Security Guide

Pickling in Python serializes objects to bytes, but unpickling untrusted data can run arbitrary code. Here is how the risk works and how to defend against it.

Mar 18, 20256 min read
DevSecOps

SnakeYAML in Maven: How to Use It Safely and Avoid CVE-2022-1471

Adding SnakeYAML as a Maven dependency is fine, but parsing untrusted YAML with the default constructor is not. Here is how to pin a safe version and lock down deserialization.

Mar 18, 20255 min read
Security

How to Fix the SnakeYAML Vulnerability (CVE-2022-1471)

The SnakeYAML vulnerability fix comes down to one move: get off the 1.x line and onto 2.x, where the parser stops trusting arbitrary Java types by default.

Mar 18, 20255 min read
AppSec

YAML Parsers in Java: SnakeYAML Deserialization Risks Explained

Choosing a YAML parser in Java means choosing a deserialization posture. How SnakeYAML's CVE-2022-1471 worked, what changed in 2.0, and how to parse YAML safely.

Mar 6, 20257 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.

deserialization (Page 5) — Safeguard Blog