Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.deserialization.json-create-additions

JSON / Oj parsing is configured to create Ruby objects from the document (create_additions or Oj object mode). Untrusted JSON can then instantiate arbitrary classes.

Last updated:

Suite: Security

ruby

JSON / Oj parsing is configured to create Ruby objects from the document (create_additions or Oj object mode). Untrusted JSON can then instantiate arbitrary classes.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Parse with JSON.parse(data) (create_additions: false) or Oj.load(data, mode: :strict) and build objects explicitly.

References

Source: packages/engine/rules/sast/ruby.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.