CVE-2026-84993 (GCVE-0-2026-84993)

Vulnerability from cvelistv5 – Published: 2026-09-16 16:28 – Updated: 2026-09-16 17:42
VLAI
Title
MikroORM: SQL injection via unvalidated order direction in orderBy
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.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-09-16 17:41 UTC
CWE
  • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Impacted products
Vendor Product Version
mikro-orm mikro-orm Affected: < 6.6.16
Affected: >= 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": {
    "epss": {
      "cve": "CVE-2026-84993",
      "date": "2026-10-07",
      "epss": "0.00506",
      "percentile": "0.41258"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  }
                ]
              }
            ],
            "source": "security-advisories@github.com"
          }
        ],
        "cveTags": [],
        "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."
          }
        ],
        "id": "CVE-2026-84993",
        "lastModified": "2026-09-30T17:51:56.193",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "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"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 3.6,
              "source": "security-advisories@github.com",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-84993",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-09-16T17:41:54.645625Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-09-16T17:18:15.423",
        "references": [
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/mikro-orm/mikro-orm/commit/89e5546bf8e10f8465682016a3bdf622ff55d8c5"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/mikro-orm/mikro-orm/pull/7996"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/mikro-orm/mikro-orm/pull/7997"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-7j79-7q93-6v69"
          }
        ],
        "sourceIdentifier": "security-advisories@github.com",
        "vulnStatus": "Deferred",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-89"
              }
            ],
            "source": "security-advisories@github.com",
            "type": "Secondary"
          }
        ]
      }
    },
    "vulnrichment": {
      "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:41:58.182Z",
              "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"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…