Hiroshi SHIBATA 422347ea26 [ruby/psych] Reject non-Array/String classes for their subclass tags
!ruby/array, !seq and !ruby/string carry the same exposure just fixed
for the hash tags: the loader allocated the named class and replaced its
contents without checking the class was actually an Array or String
subclass. Apply the same subclass check so a permitted unrelated class
can no longer be allocated and populated through these tags.

https://github.com/ruby/psych/commit/73f0131b13

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 00:04:14 +00:00
..