---
id: CVE-2026-42475
title: >-
  SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted
  `on` array to the joinOn function in BuildHelper.php.
summary: >-
  SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted
  `on` array to the joinOn function in BuildHelper.php.
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-89
vendor: openmix
product: mix_php
affected:
  - 'mix_php >= 2.0.1, <= 2.2.17'
published: '2026-05-01'
updated: '2026-07-08'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-42475'
references:
  - url: 'https://gist.github.com/sgInnora/fa46386840fe978a30d7e53c458f2975'
    label: cve@mitre.org
  - url: 'https://github.com/mix-php/mix'
    label: cve@mitre.org
  - url: >-
      https://github.com/mix-php/mix/blob/v2.2.17/src/database/src/Helper/BuildHelper.php
    label: cve@mitre.org
tags:
  - nvd
epss: 0.00332
epssPercentile: 0.23781
ingestedAt: '2026-07-08T03:46:38.674Z'
---

## Overview

SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `on` array to the joinOn function in BuildHelper.php.

## Affected

- `mix_php >= 2.0.1, <= 2.2.17`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
