oj vulnerabilities

The fastest JSON parser and object serializer.

Registry
RubyGems
Latest
3.17.8
License
MIT

11 known advisories

The latest version, 3.17.8, is not affected by any of them. Projects on older versions may be.

Update to the latest version:bundle update --conservative oj # Gemfile: '>= 3.17.8'

Is your project on an affected oj?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for oj

  • HighCVE-2026-54903GHSA-475m-ph3x-64gp19 Jun 2026

    Oj: Integer Overflow in Oj.load 2GB String Handling

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54902GHSA-m578-w5vf-rfcm19 Jun 2026

    Oj: Use-After-Free in Oj::Parser SAJ Long Key Callback

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54901GHSA-vwm4-62gf-x74519 Jun 2026

    Oj: Use-After-Free in Oj::Parser array_class/hash_class GC Marking

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54900GHSA-9cv6-qcjw-4grx19 Jun 2026

    Oj: Negative-Size memcpy in Oj::Parser create_id Attribute Handling

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54898GHSA-q2gm-54r6-8fwm19 Jun 2026

    Oj: Use-After-Free in Oj::Parser SAJ Callback via Input Mutation

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54897GHSA-9ppp-w3g4-fh4q19 Jun 2026

    Oj: Use-After-Free in Oj::Doc Iterators via Reentrant Close

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54896GHSA-35w3-pjm6-wj9519 Jun 2026

    Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54592GHSA-3m6q-jj5j-38c919 Jun 2026

    Oj: Stack Buffer Overflow in Oj::Doc#each_child via Deeply Nested Input

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • MediumCVE-2026-54500GHSA-fm7p-mprw-wjm919 Jun 2026

    Oj: intern.c form_attr (uninitialized stack read)

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54502GHSA-3v45-f3vh-wg7m19 Jun 2026

    Oj: Stack Buffer Overflow in Oj.dump via Large Indent

    Affected
    <3.17.3
    Fixed in
    3.17.3
  • HighCVE-2026-54899GHSA-2cw7-v8ff-p88r19 Jun 2026

    Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle

    Affected
    <3.17.2
    Fixed in
    3.17.2

Is your oj version vulnerable?

Which of your client projects still run an old oj?

NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other RubyGems packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.