GHSA-CG48-9HH2-X6MX

Vulnerability from github – Published: 2020-09-02 18:28 – Updated: 2021-09-27 20:53
VLAI?
Summary
HTML Injection in preact
Details

Versions of preact 10.x on prerelease tags alpha and beta prior to 10.0.0-beta.1 are vulnerable to HTML Injection. Due to insufficient input validation the package allows attackers to inject JavaScript objects as virtual-dom nodes, which may lead to Cross-Site Scripting. This requires user input parsed with JSON.parse() to be passed directly into JSX without sanitization.

Recommendation

Upgrade to version 10.0.0-beta.1.

Show details on source website

{
  "affected": [
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c= 10.0.0-beta.0"
      },
      "package": {
        "ecosystem": "npm",
        "name": "preact"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "10.0.0-alpha.0"
            },
            {
              "fixed": "10.0.0-beta.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-74"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:37:35Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
  },
  "details": "Versions of `preact` 10.x on prerelease tags alpha and beta prior to 10.0.0-beta.1 are vulnerable to HTML Injection. Due to insufficient input validation the package allows attackers to inject JavaScript objects as virtual-dom nodes, which may lead to Cross-Site Scripting. This requires user input parsed with `JSON.parse()` to be passed directly into JSX without sanitization.\n\n\n## Recommendation\n\nUpgrade to version 10.0.0-beta.1.",
  "id": "GHSA-cg48-9hh2-x6mx",
  "modified": "2021-09-27T20:53:56Z",
  "published": "2020-09-02T18:28:58Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/developit/preact/pull/1528"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/developit/preact"
    },
    {
      "type": "WEB",
      "url": "https://github.com/developit/preact/releases/tag/10.0.0-beta.1"
    },
    {
      "type": "WEB",
      "url": "https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactjs-883fb1fe36c1"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/835"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "HTML Injection in preact"
}


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…