Skip to content

Commit 04f2bbc

Browse files
committed
Updated JSON docs
1 parent 65f9bc7 commit 04f2bbc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/security.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ the form validation framework, which does not exist in Flask.
9595
JSON Security
9696
-------------
9797

98+
.. admonition:: ECMAScript 5 Changes
99+
100+
Starting with ECMAScript 5 the behavior of literals changed. Now they
101+
are not constructed with the constructor of ``Array`` and others, but
102+
with the builtin constructor of ``Array`` which closes this particular
103+
attack vector.
104+
98105
JSON itself is a high-level serialization format, so there is barely
99106
anything that could cause security problems, right? You can't declare
100107
recursive structures that could cause problems and the only thing that

0 commit comments

Comments
 (0)