Skip to content

Bump nokogiri and oj to fix 16 security findings#111

Open
sbhuiyan-r7 wants to merge 1 commit into
masterfrom
fix-nokogiri-oj-security
Open

Bump nokogiri and oj to fix 16 security findings#111
sbhuiyan-r7 wants to merge 1 commit into
masterfrom
fix-nokogiri-oj-security

Conversation

@sbhuiyan-r7

@sbhuiyan-r7 sbhuiyan-r7 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Security Remediation

Addresses all 16 active DefectHub findings for this repo (12 High + 4 Medium) by bumping nokogiri and oj:

nokogiri 1.18.10 → 1.19.4

Finding Severity SLA Title Snyk ID
161838 High Jul 24 Use After Free SNYK-RUBY-NOKOGIRI-17391937
161839 High Jul 24 XML External Entity (XXE) Injection SNYK-RUBY-NOKOGIRI-17391932
16722 Medium May 26 (expired) Unchecked Return Value SNYK-RUBY-NOKOGIRI-15315717
102790 Medium Aug 07 Regular Expression Denial of Service (ReDoS) SNYK-RUBY-NOKOGIRI-16438967
166288 Medium Sep 24 Incorrect Type Conversion or Cast SNYK-RUBY-NOKOGIRI-17457905

oj 3.13.21 → 3.17.3

Finding Severity SLA Title Snyk ID
161840 High Jul 24 Use After Free SNYK-RUBY-OJ-17393862
161841 High Jul 24 Use After Free SNYK-RUBY-OJ-17393953
161842 High Jul 24 Use After Free SNYK-RUBY-OJ-17393954
161843 High Jul 24 Out-of-Bounds Write SNYK-RUBY-OJ-17393897
161844 High Jul 24 Use After Free SNYK-RUBY-OJ-17393950
161845 High Jul 24 Stack-Based Buffer Overflow SNYK-RUBY-OJ-17393938
161846 High Jul 24 Use After Free SNYK-RUBY-OJ-17393952
161847 High Jul 24 Integer Overflow or Wraparound SNYK-RUBY-OJ-17393977
161848 High Jul 24 Use After Free SNYK-RUBY-OJ-17393894
161849 High Jul 24 Heap-Based Buffer Overflow SNYK-RUBY-OJ-17393869
161850 Medium Sep 22 Use of Uninitialized Resource SNYK-RUBY-OJ-17393910

Changes

  • nokogiri bumped from 1.18.10 to 1.19.4 (deps unchanged: mini_portile2 ~> 2.8.2, racc ~> 1.4)
  • oj bumped from 3.13.21 to 3.17.3 (adds bigdecimal >= 3.0 as new runtime dep)
  • Added bigdecimal (4.1.2) as transitive dependency

Compatibility

  • nokogiri 1.19.x is backward-compatible with 1.18.x (same API, security patches only)
  • oj 3.17.x is backward-compatible with 3.13.x (same major version, C extension fixes)
  • bigdecimal is a Ruby stdlib gem already bundled with Ruby 3.x
  • dap gemspec specifies unbounded nokogiri and oj dependencies — no constraint conflicts
  • Supersedes Dependabot PR Bump oj from 3.13.21 to 3.17.3 #110 (oj-only bump) — this PR also covers nokogiri

Fixes 12 High severity DefectHub findings (161838-161849) expiring Jul 24
plus expired Medium finding 16722 (nokogiri 1.13.9, May 26):
- nokogiri: XXE Injection, Use After Free
- oj: Multiple Use After Free, Stack-Based Buffer Overflow, Integer
  Overflow, Heap-Based Buffer Overflow, Out-of-Bounds Write

Added bigdecimal as new transitive dependency required by oj >= 3.17.

Supersedes Dependabot PR #110 which only covers oj.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@snyk-io

snyk-io Bot commented Jul 20, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@sbhuiyan-r7 sbhuiyan-r7 changed the title Bump nokogiri and oj for security fixes Bump nokogiri and oj to fix 16 security findings Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants