diffy is vulnerable to Denial of Service (DoS)
53
Medium Risk
The diffy patch parser can panic when processing crafted unified diff input through Patch::from_str or related parsing APIs. Malformed hunk range values can overflow integer arithmetic during header parsing and abort the process, and quoted file paths that decode to non-UTF-8 bytes trigger a panic when converting parsed paths to text patches. Before the fix, untrusted patch content could crash the hosting application. The fix validates hunk ranges with checked arithmetic and returns parse errors instead of panicking on invalid UTF-8 filenames.
You are affected if you are using a version that falls within the vulnerable range.
diffy is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 0.4.2.
Upgrade the diffy library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant