Improper Validation of Specified Quantity in Input Affecting oxidize-pdf package, versions <2.6.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-OXIDIZEPDF-16734494
  • published18 May 2026
  • disclosed11 May 2026
  • creditbzsanti

Introduced: 11 May 2026

New CVE NOT AVAILABLE CWE-1284  (opens in a new tab)

How to fix?

Upgrade oxidize-pdf to version 2.6.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via the emission of non-finite color values in the content stream. An attacker can cause PDF viewers to reject the content stream, affected page, or entire document by supplying specially crafted color values such as NaN or infinity, which are not valid PDF numeric tokens and bypass input clamping when constructed directly through public enum variants.

Workaround

This vulnerability can be mitigated by always constructing colors via safe constructors that clamp values, avoiding direct enum construction from untrusted input, and validating color components to ensure they are finite before passing them to the API.

CVSS Base Scores

version 4.0
version 3.1