mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
#2219 Frezing object to protect the prototype
This commit is contained in:
@@ -57,9 +57,8 @@ subgraph CompositeState
|
||||
end
|
||||
</div>
|
||||
<div class="mermaid" style="width: 100%; height: 20%;">
|
||||
%%{init: { '__proto__': {'vuln': 'test'}} }%%
|
||||
%%{init: { '__proto__': {'vuln': 'test'}} }%%
|
||||
|
||||
%%{init: { 'prototype': {'__proto__': {'vuln': 'test'}}} }%%
|
||||
%%{init: { 'prototype': {'__proto__': {'vuln': 'test'}}} }%%
|
||||
sequenceDiagram
|
||||
Alice->>Bob: Hi Bob
|
||||
Bob->>Alice: Hi Alice
|
||||
|
@@ -44,6 +44,13 @@
|
||||
graph LR
|
||||
A --> B
|
||||
</div>
|
||||
<div class="mermaid">
|
||||
%%{init: { 'prototype': {'__proto__': {'polluted': 'test'}}} }%%
|
||||
%%{init: { 'prototype': {'__proto__': {'polluted': 'test'}}} }%%
|
||||
sequenceDiagram
|
||||
Alice->>Bob: Hi Bob
|
||||
Bob->>Alice: Hi Alice
|
||||
</div>
|
||||
<script src="./mermaid.js"></script>
|
||||
<script>
|
||||
mermaid.initialize({
|
||||
|
Reference in New Issue
Block a user