GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GHSA-jpcq-cgw6-v4j6medium6.9 Known exploited

Potential XSS vulnerability in jQuery

Check your stack

The advisory, in context

Impact

Passing HTML containing <option> elements from untrusted sources - even after sanitizing them - 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 this issue without upgrading, use DOMPurify with its SAFE_FOR_JQUERY option to sanitize the HTML string before passing it to a jQuery method.

References

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

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.

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

Semantic versions

From 1.0.3 before 3.5.0

Fixed in 3.5.0

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "1.0.3"
        },
        {
          "fixed": "3.5.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
Ecosystem versions

Earlier releases before 4.4.0

Fixed in 4.4.0

74 explicitly affected versions

0.1.1, 0.1.2, 0.1.3, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 1.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.17, 1.0.18, 1.0.19, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.rc, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 4.0.0, 4.0.0.beta1, 4.0.0.beta2, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0"
        },
        {
          "fixed": "4.4.0"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "0.1.1",
    "0.1.2",
    "0.1.3",
    "0.2",
    "0.2.1",
    "0.2.2",
    "0.2.3",
    "0.2.4",
    "0.2.5",
    "0.2.6",
    "0.2.7",
    "1.0",
    "1.0.1",
    "1.0.10",
    "1.0.11",
    "1.0.12",
    "1.0.13",
    "1.0.14",
    "1.0.15",
    "1.0.16",
    "1.0.17",
    "1.0.18",
    "1.0.19",
    "1.0.2",
    "1.0.3",
    "1.0.4",
    "1.0.5",
    "1.0.6",
    "1.0.7",
    "1.0.8",
    "1.0.9",
    "1.0.rc",
    "2.0.1",
    "2.0.2",
    "2.0.3",
    "2.1.0",
    "2.1.1",
    "2.1.2",
    "2.1.3",
    "2.1.4",
    "2.2.0",
    "2.2.1",
    "2.2.2",
    "2.3.0",
    "3.0.0",
    "3.0.1",
    "3.0.2",
    "3.0.3",
    "3.0.4",
    "3.1.0",
    "3.1.1",
    "3.1.2",
    "3.1.3",
    "3.1.4",
    "3.1.5",
    "4.0.0",
    "4.0.0.beta1",
    "4.0.0.beta2",
    "4.0.1",
    "4.0.2",
    "4.0.3",
    "4.0.4",
    "4.0.5",
    "4.1.0",
    "4.1.1",
    "4.2.0",
    "4.2.1",
    "4.2.2",
    "4.3.0",
    "4.3.1",
    "4.3.2",
    "4.3.3",
    "4.3.4",
    "4.3.5"
  ]
}
jQuery NuGet
Ecosystem versions

From 1.0.3 before 3.5.0

Fixed in 3.5.0

58 explicitly affected versions

1.10.0, 1.10.0.1, 1.10.1, 1.10.2, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.12.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7.0, 1.7.1, 1.7.1.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.9.0, 1.9.1, 2.0.0, 2.0.1, 2.0.1.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 3.0.0, 3.0.0.1, 3.1.0, 3.1.1, 3.2.1, 3.3.1, 3.4.0, 3.4.1

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "1.0.3"
        },
        {
          "fixed": "3.5.0"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "1.10.0",
    "1.10.0.1",
    "1.10.1",
    "1.10.2",
    "1.11.0",
    "1.11.1",
    "1.11.2",
    "1.11.3",
    "1.12.0",
    "1.12.1",
    "1.12.2",
    "1.12.3",
    "1.12.4",
    "1.4.1",
    "1.4.2",
    "1.4.3",
    "1.4.4",
    "1.5.0",
    "1.5.1",
    "1.5.2",
    "1.6.0",
    "1.6.1",
    "1.6.2",
    "1.6.3",
    "1.6.4",
    "1.7.0",
    "1.7.1",
    "1.7.1.1",
    "1.7.2",
    "1.8.0",
    "1.8.1",
    "1.8.2",
    "1.8.3",
    "1.9.0",
    "1.9.1",
    "2.0.0",
    "2.0.1",
    "2.0.1.1",
    "2.0.2",
    "2.0.3",
    "2.1.0",
    "2.1.1",
    "2.1.2",
    "2.1.3",
    "2.1.4",
    "2.2.0",
    "2.2.1",
    "2.2.2",
    "2.2.3",
    "2.2.4",
    "3.0.0",
    "3.0.0.1",
    "3.1.0",
    "3.1.1",
    "3.2.1",
    "3.3.1",
    "3.4.0",
    "3.4.1"
  ]
}
Ecosystem versions

From 1.0.3 before 3.5.0

Fixed in 3.5.0

35 explicitly affected versions

1.11.0, 1.11.1, 1.11.3, 1.12.1, 1.12.2, 1.12.3, 1.12.4, 1.7.2, 1.7.3, 1.8.2, 1.8.3, 1.9.1, 2.1.0, 2.1.1, 2.1.1-rc1, 2.1.1-rc2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 3.0.0, 3.0.0-alpha1, 3.0.0-beta1, 3.0.0-rc1, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.0, 3.3.1, 3.4.0, 3.4.1

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "1.0.3"
        },
        {
          "fixed": "3.5.0"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "1.11.0",
    "1.11.1",
    "1.11.3",
    "1.12.1",
    "1.12.2",
    "1.12.3",
    "1.12.4",
    "1.7.2",
    "1.7.3",
    "1.8.2",
    "1.8.3",
    "1.9.1",
    "2.1.0",
    "2.1.1",
    "2.1.1-rc1",
    "2.1.1-rc2",
    "2.1.3",
    "2.1.4",
    "2.2.0",
    "2.2.1",
    "2.2.2",
    "2.2.3",
    "2.2.4",
    "3.0.0",
    "3.0.0-alpha1",
    "3.0.0-beta1",
    "3.0.0-rc1",
    "3.1.0",
    "3.1.1",
    "3.2.0",
    "3.2.1",
    "3.3.0",
    "3.3.1",
    "3.4.0",
    "3.4.1"
  ]
}
Ecosystem versions

From 1.0.3 before 3.5.0

Fixed in 3.5.0

31 explicitly affected versions

1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.12.4, 1.8.3, 1.9.0, 1.9.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.4, 3.0.0, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.1, 3.4.1

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "1.0.3"
        },
        {
          "fixed": "3.5.0"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "1.10.0",
    "1.10.1",
    "1.10.2",
    "1.11.0",
    "1.11.1",
    "1.11.2",
    "1.11.3",
    "1.12.0",
    "1.12.1",
    "1.12.4",
    "1.8.3",
    "1.9.0",
    "1.9.1",
    "2.0.0",
    "2.0.1",
    "2.0.2",
    "2.0.3",
    "2.1.0",
    "2.1.1",
    "2.1.3",
    "2.1.4",
    "2.2.0",
    "2.2.1",
    "2.2.4",
    "3.0.0",
    "3.1.0",
    "3.1.1",
    "3.2.0",
    "3.2.1",
    "3.3.1",
    "3.4.1"
  ]
}

References