CVE-2026-84993 (GCVE-0-2026-84993)
Vulnerability from cvelistv5
Published
2026-09-16 16:28
Modified
2026-09-16 17:42
CWE
  • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Summary
MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to 6.6.16 and 7.1.7, the shared SQL layer validates the field key of an orderBy clause but does not validate its direction value before AbstractSqlPlatform.getOrderByExpression concatenates it into an ORDER BY clause. Applications that bind attacker-controlled request data to the direction in em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy(), or QueryBuilderHelper.getQueryOrderFromObject() can permit a raw SQL fragment that performs blind or boolean extraction of data available to the database account. The BaseMySqlPlatform and MsSqlPlatform fallthrough paths have the same behavior, affecting SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL, and Oracle drivers, while MongoDB is not affected. This issue is fixed in versions 6.6.16 and 7.1.7.
Impacted products
Vendor Product Version
mikro-orm mikro-orm Version: < 6.6.16
Version: >= 7.0.0, < 7.1.7
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-84993",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-09-16T17:41:54.645625Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-09-16T17:42:01.623Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "mikro-orm",
          "vendor": "mikro-orm",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 6.6.16"
            },
            {
              "status": "affected",
              "version": "\u003e= 7.0.0, \u003c 7.1.7"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to 6.6.16 and 7.1.7, the shared SQL layer validates the field key of an orderBy clause but does not validate its direction value before AbstractSqlPlatform.getOrderByExpression concatenates it into an ORDER BY clause. Applications that bind attacker-controlled request data to the direction in em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy(), or QueryBuilderHelper.getQueryOrderFromObject() can permit a raw SQL fragment that performs blind or boolean extraction of data available to the database account. The BaseMySqlPlatform and MsSqlPlatform fallthrough paths have the same behavior, affecting SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL, and Oracle drivers, while MongoDB is not affected. This issue is fixed in versions 6.6.16 and 7.1.7."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-89",
              "description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-16T16:28:37.304Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-7j79-7q93-6v69",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-7j79-7q93-6v69"
        },
        {
          "name": "https://github.com/mikro-orm/mikro-orm/pull/7996",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/mikro-orm/mikro-orm/pull/7996"
        },
        {
          "name": "https://github.com/mikro-orm/mikro-orm/pull/7997",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/mikro-orm/mikro-orm/pull/7997"
        },
        {
          "name": "https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5"
        },
        {
          "name": "https://github.com/mikro-orm/mikro-orm/commit/89e5546bf8e10f8465682016a3bdf622ff55d8c5",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/mikro-orm/mikro-orm/commit/89e5546bf8e10f8465682016a3bdf622ff55d8c5"
        },
        {
          "name": "https://github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16"
        },
        {
          "name": "https://github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7"
        }
      ],
      "source": {
        "advisory": "GHSA-7j79-7q93-6v69",
        "discovery": "UNKNOWN"
      },
      "title": "MikroORM: SQL injection via unvalidated order direction in orderBy"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2026-84993",
    "datePublished": "2026-09-16T16:28:37.304Z",
    "dateReserved": "2026-09-02T18:12:13.534Z",
    "dateUpdated": "2026-09-16T17:42:01.623Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-84993\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-09-16T17:41:54.645625Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-09-16T17:41:58.182Z\"}}], \"cna\": {\"title\": \"MikroORM: SQL injection via unvalidated order direction in orderBy\", \"source\": {\"advisory\": \"GHSA-7j79-7q93-6v69\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"mikro-orm\", \"product\": \"mikro-orm\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 6.6.16\"}, {\"status\": \"affected\", \"version\": \"\u003e= 7.0.0, \u003c 7.1.7\"}]}], \"references\": [{\"url\": \"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-7j79-7q93-6v69\", \"name\": \"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-7j79-7q93-6v69\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/mikro-orm/mikro-orm/pull/7996\", \"name\": \"https://github.com/mikro-orm/mikro-orm/pull/7996\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/mikro-orm/mikro-orm/pull/7997\", \"name\": \"https://github.com/mikro-orm/mikro-orm/pull/7997\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5\", \"name\": \"https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/mikro-orm/mikro-orm/commit/89e5546bf8e10f8465682016a3bdf622ff55d8c5\", \"name\": \"https://github.com/mikro-orm/mikro-orm/commit/89e5546bf8e10f8465682016a3bdf622ff55d8c5\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16\", \"name\": \"https://github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7\", \"name\": \"https://github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to 6.6.16 and 7.1.7, the shared SQL layer validates the field key of an orderBy clause but does not validate its direction value before AbstractSqlPlatform.getOrderByExpression concatenates it into an ORDER BY clause. Applications that bind attacker-controlled request data to the direction in em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy(), or QueryBuilderHelper.getQueryOrderFromObject() can permit a raw SQL fragment that performs blind or boolean extraction of data available to the database account. The BaseMySqlPlatform and MsSqlPlatform fallthrough paths have the same behavior, affecting SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL, and Oracle drivers, while MongoDB is not affected. This issue is fixed in versions 6.6.16 and 7.1.7.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-89\", \"description\": \"CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2026-09-16T16:28:37.304Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-84993\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-09-16T17:42:01.623Z\", \"dateReserved\": \"2026-09-02T18:12:13.534Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2026-09-16T16:28:37.304Z\", \"assignerShortName\": \"GitHub_M\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


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…