Skip to main content
Version: 4.2

JointJS+ Changelog v4.1.2

JointJS+ 4.1.2 ships with @joint/core 4.1.4.

This release fixes security issues with graph JSON from an untrusted source (CVE pending). JointJS renders the cell attributes as they are, so such JSON must still be sanitized before it enters the graph, see Sanitization.

dia​

Graph​

dia.Graph – fix to resolve cell type only to dia.Cell constructors Security​

Fix a security issue where the type of a cell could resolve to any function reachable from the namespace (e.g. constructor). Such a type now throws "Could not find cell constructor".


Paper​

dia.Paper – fix defineFilter() to ignore filter names inherited from Object.prototype Security​

Fix a security issue where a filter name inherited from Object.prototype (e.g. toString) was called as a filter and its result was inserted as the filter markup. Such a name now throws "Non-existing filter".


mvc​

mvc.$ – fix parseHTML() to remove all <script> elements Security​

Fix a security issue where parseHTML() removed only every other <script> element.


util​

util – fix sanitizeHTML() to remove unsafe elements and to detect obfuscated javascript: URLs Security​

Fix a security issue where sanitizeHTML() kept unsafe content. It now removes script, iframe, frame, frameset, object, embed, base, meta, link, noscript, animate and set elements, removes srcdoc and event handlers in any letter case, and checks URL schemes regardless of letter case, whitespace and control characters.

util – fix setByPath() and unsetByPath() to ignore __proto__ as the last path segment Security​

Fix a security issue where setByPath() and unsetByPath() could change the prototype of an object when the last segment of the path was __proto__.


filter​

util.filter – fix the built-in filters to escape their arguments Security​

Fix a security issue where the arguments of the built-in filters (e.g. color of util.filter.outline) were inserted into the filter markup unescaped.