Repository navigation
Require oj 3.17.3 or newer to clear advisories - #94
Merged
Merged
Conversation
bundle-audit reports eleven advisories against oj 3.13.23, one of them high severity (CVE-2026-54592), all fixed in oj 3.17.3. grade_runner pinned oj to "~> 3.13.12", so no project that uses this gem could take the fix: every one of the 103 Rails 8 project locks was stuck on 3.13.23 for as long as it depended on grade_runner 0.0.16. Move the pin to "~> 3.17", ">= 3.17.3" and bump to 0.0.17. The gem only calls Oj.dump and Oj.load on RSpec output and on Grades responses; both give byte-identical results under 3.13.23 and 3.17.8 on Ruby 4.0.5, checked inside the phase 1 dev image.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
Review and local testingGood to merge. Moving to oj 3.17.8 clears the advisories and doesn't change anything grade_runner sends or receives. End to end in a CodespaceI ran
Locally
Notes (none block the merge)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
bundle-auditreports eleven advisories against oj 3.13.23, one of them high severity (CVE-2026-54592). All are fixed in oj 3.17.3. This gem pinsoj ~> 3.13.12, so none of the 103 Rails 8 project repos can take the fix while they depend on grade_runner 0.0.16.This is the last piece of the gem security patch started in appdev-projects/rails-8-template#33 and now being carried out fleet-wide from project-syncing (firstdraft/project-syncing#58).
Change
~> 3.13.12→~> 3.17,>= 3.17.3Gemfile.lockis left alone, as in #93.Verification
Oj.dumpandOj.load, on RSpec output and on Grades responses. A sample of both gives byte-identical results under 3.13.23 and 3.17.8.Tested end to end
rake gradeend to end in a Codespace against 0.0.17 (Grades builds Update yml file name #13 on 0.0.16 and Validate token before saving to yml #14 on 0.0.17 match; see review comment)After merge
Publish 0.0.17 to RubyGems. The project-syncing image locks and the project repos then pick it up; their Gemfiles already say
~> 0.0.16, which allows it.