Skip to content

🚨 [security] New version of rack (3.1.11) produced dependency conflicts#465

Closed
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/rack-3.1.11
Closed

🚨 [security] New version of rack (3.1.11) produced dependency conflicts#465
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/rack-3.1.11

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Mar 5, 2025

We've tried to upgrade a dependency and got errors running Bundler. It looks like there is a version conflict between two or more dependencies. Depfu doesn't try to solve these, as this would mean to update more than one dependency at a time.

Please take a look at the exact failure to figure out if this is something you need to work on.

The bundler error message was:

Bundler could not find compatible versions for gem "rack":
  In Gemfile:
    rack (~> 3.1)

    hanami-router was resolved to 2.2.0, which depends on
      rack (~> 2.0)

What changed?

✳️ rack (~> 2.0 → ~> 3.1) · Repo · Changelog

Security Advisories 🚨

🚨 Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection

Summary

Rack::Sendfile can be exploited by crafting input that includes newline characters to manipulate log entries.

Details

The Rack::Sendfile middleware logs unsanitized header values from the X-Sendfile-Type header. An attacker can exploit this by injecting escape sequences (such as newline characters) into the header, resulting in log injection.

Impact

This vulnerability can distort log files, obscure attack traces, and complicate security auditing.

Mitigation

  • Update to the latest version of Rack, or
  • Remove usage of Rack::Sendfile.
Release Notes

3.1.11 (from changelog)

Security

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 2 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Mar 5, 2025
@timriley timriley closed this May 13, 2025
@depfu depfu bot deleted the depfu/update/rack-3.1.11 branch May 13, 2025 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant