Fix possible fix(deps): 6 vulnerable dependencies in Gemfile.lock - #511
Open
begininvoke wants to merge 1 commit into
Open
Fix possible fix(deps): 6 vulnerable dependencies in Gemfile.lock#511begininvoke wants to merge 1 commit into
begininvoke wants to merge 1 commit into
Conversation
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.
Small change to
Gemfile.lock— a scan flagged the code below and it looked genuine. It is around line 69.Vulnerable dependency found: concurrent-ruby 1.2.3 (Gemfile.lock, line 69) is affected by CVE-2026-54906, rated CRITICAL, fixed in >= 1.3.7. The flaw is in the Concurrent::ReadWriteLock synchronization API: (1) release_write_lock does not verify that the calling thread owns the write lock, so any thread with access to the lock object can release a write lock held by another thread, letting a second writer enter its critical section while the first is still running — a race condition that can cause data corruption, inconsistent state, or security-relevant TOCTOU bugs in code protected by the lock; (2) release_read_lock decrements the shared counter even when no read lock is held, so a stray call drives the counter to -1 and all subsequent read acquisitions raise Concurrent::ResourceLimitError, enabling an availability/denial-of-service failure. Impact is highest if the application or its gems (e.g., Rails concurrency internals) actually use ReadWriteLock, but since this is a public API correctness bug, upgrading is low-risk and strongly recommended. Fix by upgrading to concurrent-ruby 1.3.7 (a compatible patch release for existing ~> 1.x constraints, including Rails') and regenerating the lockfile.
Updated vulnerable gem versions (concurrent‑ruby, rexml, activesupport, addressable, faraday) to the minimum secure releases and relaxed the rexml constraint in xcodeproj to allow the newer version, preserving all existing dependencies.
For reference: rule
CVE-2026-54906. Rated critical.Take or leave whichever parts are useful. If this is not the right approach, closing is fine.
Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.