CVE-2026-40331

Source
https://cve.org/CVERecord?id=CVE-2026-40331
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40331.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40331
Aliases
  • GHSA-jphh-r686-6w7j
Published
2026-05-05T19:48:07.898Z
Modified
2026-08-12T03:51:45.787335049Z
Severity
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Masa CMS unauthenticated SQL injection via altTable parameter in JSON API
Details

Masa CMS is an open source content management system. In versions 7.2.0 through 7.2.9, 7.3.0 through 7.3.14, 7.4.0 through 7.4.9, and 7.5.0 through 7.5.2, the unauthenticated JSON API accepts an altTable parameter that is stored via the setAltTable() method without validation or sanitization. This value is injected directly into a SQL FROM clause within feedGateway.cfc. An unauthenticated attacker can pass an arbitrary subquery into the altTable parameter to read sensitive data from any table in the database in a single HTTP request, including administrative credentials and password reset tokens.

This issue has been fixed in versions 7.2.10, 7.3.15, 7.4.10, and 7.5.3. As a workaround, apply validation to the setAltTable function in core/mura/content/feed/feedBean.cfc to restrict input to simple alphanumeric table names, or disable the JSON API if it is not required.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40331.json"
}
References

Affected packages

Git / github.com/masacms/masacms

Affected ranges

Type
GIT
Repo
https://github.com/masacms/masacms
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "7.2.0"
        },
        {
            "fixed": "7.2.9"
        },
        {
            "introduced": "7.3.0"
        },
        {
            "fixed": "7.3.14"
        },
        {
            "introduced": "7.4.0"
        },
        {
            "fixed": "7.4.9"
        },
        {
            "introduced": "7.5.0"
        },
        {
            "fixed": "7.5.2"
        }
    ],
    "source": "DESCRIPTION"
}

Affected versions

7.*
7.2.0
7.2.1
7.2.2
7.2.3
7.2.4
7.2.5
7.2.6
7.2.7
7.2.8
7.3
7.3.1
7.3.10
7.3.11
7.3.12
7.3.13
7.3.2
7.3.3
7.3.4
7.3.5
7.3.6
7.3.7
7.3.8
7.3.9
7.4.0
7.4.1
7.4.2
7.4.3
7.4.4
7.4.6
7.4.7
7.4.8
7.5.0
7.5.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40331.json"