GHSA-wmw4-mw6x-6vfm

Suggest an improvement
Source
https://github.com/advisories/GHSA-wmw4-mw6x-6vfm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-wmw4-mw6x-6vfm/GHSA-wmw4-mw6x-6vfm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wmw4-mw6x-6vfm
Aliases
Published
2026-09-23T21:51:59Z
Modified
2026-09-23T22:00:04Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
ReactPress has SQL injection via dynamic column names in TypeORM query builders
Details

Summary

ReactPress API list endpoints build TypeORM QueryBuilder conditions using unsanitized HTTP query parameter names as SQL column identifiers (e.g. `article.${key}`). TypeORM parameterizes values but not column names, allowing unauthenticated attackers to inject SQL through crafted query string keys.

Impact

An unauthenticated remote attacker can perform blind SQL injection against the application database, potentially exfiltrating sensitive data (users, settings, API keys, article content, etc.).

Affected endpoints (unauthenticated GET)

  • GET /api/article
  • GET /api/comment
  • GET /api/file
  • GET /api/page
  • GET /api/Knowledge

Affected code

Vulnerable pattern in findAll() methods, including but not limited to:

  • server/src/modules/article/article.service.ts
  • server/src/modules/comment/comment.service.ts
  • server/src/modules/file/file.service.ts
  • server/src/modules/page/page.service.ts
  • server/src/modules/knowledge/knowledge.service.ts

Remediation

  • Whitelist allowed filter column names before interpolating into SQL.
  • Upgrade to @fecommunity/reactpress >= 3.7.0.

Credit

Reported by lsr365400.

Database specific
{
    "cwe_ids":  [
        "CWE-89"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-23T21:51:59Z",
    "nvd_published_at":  "2026-09-22T23:17:07Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @fecommunity/reactpress

Package

Name
@fecommunity/reactpress
View open source insights on deps.dev
Purl
pkg:npm/%40fecommunity/reactpress

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.7.0

Database specific

last_known_affected_version_range
"<= 3.6.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-wmw4-mw6x-6vfm/GHSA-wmw4-mw6x-6vfm.json"