Advisory

GHSA-wmw4-mw6x-6vfm

Also known as: CVE-2026-61685

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-09-23 21:51 UTC
Modified
2026-09-23 22:00 UTC

Affected packages and fixes

@fecommunity/reactpress

npm · All systems

Affected

  • introduced 0, fixed 3.7.0 (semver)

Fixed versions

3.7.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences