Skip to content

Commit d9b6866

Browse files
committed
fixed YAML remote code execution vulnerability
1 parent 7d26332 commit d9b6866

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## master
2+
3+
* Fix for remote code execution bug. For more in-depth information, read about the
4+
recent [Rails hotfix](https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/61bkgvnSGTQ).
5+
Please make sure to upgrade now!
6+
17
## 1.1.3 (2012-07-12)
28

39
* Fix: Merged [pull request 21](https://github.com/rubiii/nori/pull/21) to fix an
@@ -77,7 +83,7 @@
7783

7884
## 0.2.1 (2011-05-15)
7985

80-
* Fix: Changed XML attributes converted to Hash keys to be prefixed with an @-sign.
86+
* Fix: Changed XML attributes converted to Hash keys to be prefixed with an @-sign.
8187
This avoids problems with attributes and child nodes having the same name.
8288

8389
<multiRef id="id1">

lib/nori/xml_utility_node.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ def self.available_typecasts=(obj)
7777
self.typecasts["decimal"] = lambda { |v| v.nil? ? nil : BigDecimal(v.to_s) }
7878
self.typecasts["double"] = lambda { |v| v.nil? ? nil : v.to_f }
7979
self.typecasts["float"] = lambda { |v| v.nil? ? nil : v.to_f }
80-
self.typecasts["symbol"] = lambda { |v| v.nil? ? nil : v.to_sym }
8180
self.typecasts["string"] = lambda { |v| v.to_s }
82-
self.typecasts["yaml"] = lambda { |v| v.nil? ? nil : YAML.load(v) }
8381
self.typecasts["base64Binary"] = lambda { |v| v.unpack('m').first }
8482

8583
self.available_typecasts = self.typecasts.keys

0 commit comments

Comments
 (0)