Skip to content
Heist/ feed
Back to feed
High

Stored Cross-site Scripting Vulnerability in Markdown Editor

Type: advisorySources: OSV

InvenTree is an Open Source Inventory Management System. In affected versions of InvenTree it is possible for a registered user to store javascript in markdown notes fields, which are then displayed to other logged in users who visit the same page and executed. The vulnerability has been addressed as follows: 1. HTML sanitization has been enabled in the front-end markdown rendering library - `easymde`. 2. Stored markdown is also validated on the backend, to ensure that malicious markdown is not stored in the database. These changes are available in release versions 0.16.5 and later. All users are advised to upgrade. There are no workarounds, an update is required to get the new validation functions.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-47610
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 04:52 UTC · Revision 1

Source evidence

Stored Cross-site Scripting Vulnerability in Markdown Editor

core-osv · Original source

Published 7 Oct 2024, 20:45 UTC

InvenTree is an Open Source Inventory Management System. In affected versions of InvenTree it is possible for a registered user to store javascript in markdown notes fields, which are then displayed to other logged in users who visit the same page and executed. The vulnerability has been addressed as follows: 1. HTML sanitization has been enabled in the front-end markdown rendering library - `easymde`. 2. Stored markdown is also validated on the backend, to ensure that malicious markdown is not stored in the database. These changes are available in release versions 0.16.5 and later. All users are advised to upgrade. There are no workarounds, an update is required to get the new validation functions.

osv:CVE-2024-47610
Complete source record
{
  "id": "5768b1e9020f23dd6bc3a90015ab97cb6df6a7edfe01de96480145441cf0b2fb",
  "url": "https://osv.dev/vulnerability/CVE-2024-47610",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Stored Cross-site Scripting Vulnerability in Markdown Editor",
    "summary": "InvenTree is an Open Source Inventory Management System. In affected versions of InvenTree it is possible for a registered user to store javascript in markdown notes fields, which are then displayed to other logged in users who visit the same page and executed. The vulnerability has been addressed as follows: 1. HTML sanitization has been enabled in the front-end markdown rendering library - `easymde`. 2. Stored markdown is also validated on the backend, to ensure that malicious markdown is not stored in the database. These changes are available in release versions 0.16.5 and later. All users are advised to upgrade. There are no workarounds, an update is required to get the new validation functions.",
    "evidence": "osv:CVE-2024-47610",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-47610",
      "aliases": [
        "CVE-2024-47610",
        "GHSA-wp3m-jhgv-rhqr"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/inventree/inventree",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6e37f0cd8ba5fc527412f18f66cd6a37015fa690"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.16.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6e37f0cd8ba5fc527412f18f66cd6a37015fa690"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "cpe": "cpe:2.3:a:inventree_project:inventree:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.16.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.16.4",
            "0.16.3",
            "0.16.2",
            "0.16.1",
            "0.16.0",
            "0.13.0",
            "0.12.0",
            "0.11.0",
            "0.10.0",
            "0.9.0",
            "0.8.0",
            "v0.7.0",
            "0.4.0",
            "0.3.0",
            "0.2.4",
            "0.2.3",
            "0.2.2",
            "0.2.1",
            "0.2.0",
            "0.1.8",
            "0.1.7",
            "0.1.6",
            "0.1.5",
            "0.1.4",
            "v0.1.3",
            "0.1.2",
            "0.1.1",
            "0.1.0",
            "0.0.11",
            "0.0.12",
            "v0.0.11",
            "0.0.10",
            "0.0.9",
            "0.0.8",
            "v0.0.7",
            "0.0.6",
            "v0.0.5",
            "0.0.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47610.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.158220813Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47610.json",
        "https://github.com/inventree/InvenTree/security/advisories/GHSA-wp3m-jhgv-rhqr",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47610",
        "https://github.com/inventree/InvenTree/commit/6e37f0cd8ba5fc527412f18f66cd6a37015fa690"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47610.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47610",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 500408,
  "published_at": "2024-10-07T20:45:20.51+00:00"
}