File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.2.1 (04.05.2020)
4
+
5
+ ### Security
6
+
7
+ * Fix ` html_safe ` escaping in ` Jason.encode `
8
+
9
+ The ` <!-- ` sequence of characters would not be escaped in ` Jason.encode `
10
+ with` html_escape ` mode, which could lead to DoS attacks when used for
11
+ embedding of arbitrary, user controlled strings into HTML through JSON
12
+ (e.g. inside of ` <script> ` tags).
13
+
14
+ If you were not using the ` html_safe ` option, you are not affected.
15
+
16
+ Affected versions: < 1.2.1
17
+ Patched versions: >= 1.2.1
18
+
3
19
## 1.2.0 (17.03.2020)
4
20
5
21
### Enhancements
Original file line number Diff line number Diff line change 1
1
defmodule Jason.Mixfile do
2
2
use Mix.Project
3
3
4
- @ version "1.2.0 "
4
+ @ version "1.2.1 "
5
5
6
6
def project ( ) do
7
7
[
You can’t perform that action at this time.
0 commit comments