Skip to content

Potential vulnerability in jQuery #5097

@mrgswift

Description

@mrgswift

Since this is already a public security advisory and a jQuery vulnerability, I am posting it as a public issue.

Summary:

CVE-2020-11022
In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0

Problem:

The current stable version of OctoberCMS uses jQuery 3.4.0 which is vulnerable.

Solution:

The code-base should either be updated to support jQuery 3.5.0 or higher, or jQuery.htmlPrefilter should be overridden as a workaround - discussed here:
jQuery GitHub security advisory

From link above - workaround:
jQuery.htmlPrefilter = function( html ) { return html; };

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions