Groups
Groups
Sign in
Groups
Groups
ruby-cvs
Conversations
About
Send feedback
Help
cb8a34d785 (master): [ruby/net-http] Validate Content-Type value set by set_content_type
0 views
Skip to first unread message
Hiroshi SHIBATA
unread,
Jun 9, 2026, 9:51:25 PM (11 hours ago)
Jun 9
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ruby...@g.ruby-lang.org
Hiroshi SHIBATA 2026-06-10 00:59:16 +0000 (Wed, 10 Jun 2026)
New Revision: cb8a34d785
https://github.com/ruby/ruby/commit/cb8a34d785
Log:
[ruby/net-http] Validate Content-Type value set by set_content_type
set_content_type assigned to @header directly, bypassing the CR/LF
validation in set_field, so a crafted media type or parameter could
inject header lines.
https://github.com/ruby/net-http/commit/5fe0f96190
Co-Authored-By: Claude Fable 5 <
nor...@anthropic.com
>
Modified files:
lib/net/http/header.rb
test/net/http/test_httpheader.rb
Reply all
Reply to author
Forward
0 new messages