packagist package report

Is components/jquery safe?

2 known vulnerabilities, worst severity MODERATE.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    dependents not yet indexed for this ecosystem

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so packagist packages are not covered.


      cvss
      6.9
      medium

      CVSS v3.1 base score out of 10

      epss
      99.2%
      critical

      chance of exploitation in 30 days, 100th percentile of all CVEs

      xyz score
      5.5
      medium

      CyberXYZ composite out of 10

      fig. 01 — GHSA-gxr4-xjj5-5px2, the advisory selected below

      // 2 advisories

      GHSA-gxr4-xjj5-5px2

      MODERATEGitHub ratingCVE-2020-11022
      // impact

      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.

      // patches

      This problem is patched in jQuery 3.5.0.

      // workarounds

      To workaround the issue without upgrading, adding the following to your code:

      jQuery.htmlPrefilter = function( html ) {
      	return html;
      };

      You need to use at least jQuery 1.12/2.2 or newer to be able to apply this workaround.

      // references

      https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/ https://jquery.com/upgrade-guide/3.5/

      // for more information

      If you have any questions or comments about this advisory, search for a relevant issue in the jQuery repo. If you don't find an answer, open a new issue.

      // cvss v3.1 vector

      CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N

      Attack vector
      Network
      Attack complexity
      High
      Privileges required
      None
      User interaction
      Required
      Scope
      Changed
      Confidentiality
      High
      Integrity
      Low
      Availability
      None

      Checked 2026-11-07 at 21:49 UTC. The most recent advisory here was published 2020-04-29. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.