Skip to content

Commit 6036544

Browse files
committed
Fix vulnerability per dependabot/35
https://github.com/delphidabbler/delphidabbler.github.io/security/dependabot/35 The methods URI#join, URI#merge, and URI#+ retained userinfo, such as user:password, even after the host is replaced. When generating a URL to a malicious host from a URL containing secret userinfo using these methods, and having someone access that URL, an unintended userinfo leak could occur.
1 parent eb1d64a commit 6036544

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ gem "rexml", "~> 3.3.9"
2222
gem "addressable", ">= 2.8.0"
2323
gem "commonmarker", ">= 0.23.10"
2424
gem "activesupport", "~> 7.0.7.1"
25+
gem "uri", ">= 0.13.2"
2526

2627
# Fix for when using Ruby 3 - webrick no longer installed w/ Ruby 3
2728
gem "webrick", "~> 1.8"

Gemfile.lock

+2-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ GEM
254254
unf_ext (0.0.9.1)
255255
unf_ext (0.0.9.1-x64-mingw-ucrt)
256256
unicode-display_width (1.8.0)
257-
uri (0.13.0)
257+
uri (1.0.3)
258258
wdm (0.1.1)
259259
webrick (1.8.1)
260260

@@ -271,6 +271,7 @@ DEPENDENCIES
271271
rexml (~> 3.3.9)
272272
tzinfo (~> 2.0.6)
273273
tzinfo-data
274+
uri (>= 0.13.2)
274275
wdm (~> 0.1.1)
275276
webrick (~> 1.8)
276277

0 commit comments

Comments
 (0)