devalue@1.0.4 vulnerabilities

Gets the job done when JSON.stringify can't

Direct Vulnerabilities

Known vulnerabilities in the devalue package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions.

How to fix Cross-site Scripting (XSS)?

Upgrade devalue to version 2.0.1 or higher.

<2.0.1
  • H
Cross-site Scripting (XSS)

devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). Server-rendered HTML will have unescaped route parameters in it, allowing to break the page or inject JS code into it when an object key contains unsafe characters.

How to fix Cross-site Scripting (XSS)?

Upgrade devalue to version 1.1.1 or higher.

<1.1.1