Skip to content

WA-VERIFY-106: Audit JSON.load usage (prefer JSON.parse) #1114

@kitcommerce

Description

@kitcommerce

Summary

Audit usage of JSON.load (prefer JSON.parse).

Approach

Run:

rg -n "\\bJSON\\.load\\b" --glob "*.rb"

For each call site:

  • Replace with JSON.parse unless there's a strong, documented need for JSON.load
  • Ensure any parsing of external/user data uses safe defaults

Acceptance Criteria

  • No JSON.load on untrusted inputs
  • Remaining usage (if any) is explicitly justified
  • Tests pass (default appraisal)

Verification Plan

  • Patch call sites
  • Run: bundle exec rake test (affected engine(s) or default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions