GHSA-FJ93-7WM4-8X2G

Vulnerability from github – Published: 2020-09-02 21:22 – Updated: 2021-09-27 21:03
VLAI?
Summary
Cross-Site Scripting in jquery-mobile
Details

All version of jquery-mobile are vulnerable to Cross-Site Scripting. The package checks for content in location.hash and if a URL is found it does an XmlHttpRequest (XHR) to the URL and renders the response with innerHTML. It fails to validate the Content-Type of the response, allowing attackers to include malicious payloads as part of query parameters that are reflected back to the user. A response such as {"q":"<iframe/src='javascript:alert(1)'></iframe>","results":[]} would be parsed as HTML and the JavaScript payload executed.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "jquery-mobile"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:39:15Z",
    "nvd_published_at": null,
    "severity": "HIGH"
  },
  "details": "All version of `jquery-mobile` are vulnerable to Cross-Site Scripting. The package checks for content in `location.hash` and if a URL is found it does an XmlHttpRequest (XHR) to the URL and renders the response with `innerHTML`. It fails to validate the `Content-Type` of the response, allowing attackers to include malicious payloads as part of query parameters that are reflected back to the user. A response such as `{\"q\":\"\u003ciframe/src=\u0027javascript:alert(1)\u0027\u003e\u003c/iframe\u003e\",\"results\":[]}` would be parsed as HTML and the JavaScript payload executed.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.",
  "id": "GHSA-fj93-7wm4-8x2g",
  "modified": "2021-09-27T21:03:58Z",
  "published": "2020-09-02T21:22:47Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/jquery/jquery-mobile/issues/8640"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jquery/jquery-mobile/pull/8649"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jquery/jquery-mobile/pull/8650"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jquery/jquery-mobile/commit/b0d9cc758a48f13321750d7409fb7655dcdf2b50"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/jupenur/e5d0c6f9b58aa81860bf74e010cf1685"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jquery/jquery-mobile"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-JQUERYMOBILE-174599"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/883"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "Cross-Site Scripting in jquery-mobile"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…