Introducing dssrf: A Node.js Library That Eliminates SSRF by Design #5121
HackingRepo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
dssrf is a small, defensive library for Node.js that performs strict SSRF‑safety checks on untrusted URLs. It provides a simple async API that returns
truefor safe URLs andfalsefor anything that resolves to internal, private, or otherwise unsafe network targets.The goal is to give developers a minimal, deterministic, safe‑by‑default primitive for validating outbound request targets before passing them to an HTTP client.
Why this exists
Most SSRF defenses rely on URL parsing, allowlists, or ad‑hoc hostname checks. These approaches are fragile because:
dssrf performs strict, forensic validation of the final resolved address and rejects anything that could target internal services or non‑public networks.
Usage
What it checks
The function returns
falsefor anything that resolves to an internal or ambiguous address.What it is not
It is a small, focused primitive intended for code paths where untrusted input might influence request targets.
Repository
https://github.com/HackingRepo/dssrf-js
Feedback and design critiques are welcome.
Beta Was this translation helpful? Give feedback.
All reactions