.. / jquery
Star Fork

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

jquery
jquery
...

Latest

<script> @any 🛡️ strict-dynamic ⏱️ before-call

Related links:

Found by @slekies, @kkotowicz, @sirdarckcat.


≤3.4.1 | CVE-2020-11022

<text-tags> @any ⏱️ func-parameter
More information

Root Cause

Source: https://github.com/jquery/jquery/blob/75f7e963708b60f37a42b777f35825d33c4f8e7a/src/manipulation.js#L403

html: function( value ) {
  return access( this, function( value ) {
    var elem = this[ 0 ] || {},
      i = 0,
      l = this.length;

    if ( value === undefined && elem.nodeType === 1 ) {
      return elem.innerHTML;
    }

    // See if we can take a shortcut and just use innerHTML
    if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
      !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {

      value = jQuery.htmlPrefilter( value );

      try {
        for ( ; i < l; i++ ) {
          elem = this[ i ] || {};

          // Remove element nodes and prevent memory leaks
          if ( elem.nodeType === 1 ) {
            jQuery.cleanData( getAll( elem, false ) );
            elem.innerHTML = value;
          }
        }

Source: https://github.com/jquery/jquery/blob/75f7e963708b60f37a42b777f35825d33c4f8e7a/src/manipulation.js#L240

htmlPrefilter: function( html ) {
  return html.replace( rxhtmlTag, "<$1></$2>" );
},

Related links:

Found by @kinugawamasato.


Source | History