ghsa-9r27-994c-4xch
Vulnerability from github
Published
2020-02-24 17:34
Modified
2020-02-21 20:20
Summary
discord-html not escaping HTML code blocks when lacking a language identifier
Details

Impact

Any website using discord-markdown with user-generated markdown is vulnerable to having code injected into the page where the markdown is displayed.

Patches

This has been patched in version 2.3.1

Workarounds

Escape the characters <>& before sending plain code blocks to discord-markdown.

References

https://github.com/brussell98/discord-markdown/issues/13

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "discord-markdown"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.3.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": true,
    "github_reviewed_at": "2020-02-21T20:20:53Z",
    "nvd_published_at": null,
    "severity": "HIGH"
  },
  "details": "### Impact\nAny website using discord-markdown with user-generated markdown is vulnerable to having code injected into the page where the markdown is displayed.\n\n### Patches\nThis has been patched in version 2.3.1\n\n### Workarounds\nEscape the characters `\u0026lt;\u0026gt;\u0026amp;` before sending plain code blocks to discord-markdown.\n\n### References\nhttps://github.com/brussell98/discord-markdown/issues/13",
  "id": "GHSA-9r27-994c-4xch",
  "modified": "2020-02-21T20:20:53Z",
  "published": "2020-02-24T17:34:02Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/brussell98/discord-markdown/security/advisories/GHSA-9r27-994c-4xch"
    },
    {
      "type": "WEB",
      "url": "https://github.com/brussell98/discord-markdown/issues/13"
    },
    {
      "type": "WEB",
      "url": "https://github.com/brussell98/discord-markdown/commit/7ce2eb66520815dcf5e97ef2bc8a2d5979da66e7"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "discord-html not escaping HTML code blocks when lacking a language identifier"
}


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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…