Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.deserialization.eval-based-library

A deserializer that revives functions with eval (serialize-to-js, funcster or cryo) is used. Deserializing attacker-controlled input with it is remote code execution.

Last updated:

Suite: Security

javascript, typescript

A deserializer that revives functions with eval (serialize-to-js, funcster or cryo) is used. Deserializing attacker-controlled input with it is remote code execution.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Exchange data as JSON (JSON.parse) and never deserialize executable objects.

References

Source: packages/engine/rules/sast/javascript.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.