CVE-2026-61685: @fecommunity/reactpress SQL Injection Vulnerability

HIGH
Advisory Identifier: GHSA-wmw4-mw6x-6vfm
CVSS 7.5
CWE-89
Published
Advisory Summary

CVE-2026-61685 is a HIGH (CVSS 7.5) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting @fecommunity/reactpress libraries in the npm ecosystem. The issue involves reactpress has sql injection via dynamic column names in typeorm query builders. Remediation is available by upgrading affected packages to version 3.7.0.

CVE-2026-61685 at a Glance

CVE Identifier CVE-2026-61685
GHSA Identifier GHSA-wmw4-mw6x-6vfm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product @fecommunity/reactpress
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-61685

To remediate this vulnerability, upgrade all affected @fecommunity/reactpress dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@fecommunity/reactpress fixed: 3.7.0
npm install @fecommunity/reactpress@3.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @fecommunity/reactpress

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-61685, inspect your project dependencies using npm:

npm ls @fecommunity/reactpress

Analyze the terminal output to locate any version of @fecommunity/reactpress in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.0), your application is affected.

Note: The npm ls @fecommunity/reactpress command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In @fecommunity/reactpress, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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.

CVE-2026-61685 Affected @fecommunity/reactpress Versions

1 component(s)
Fixed Versions:
3.7.0
Product / Package Ecosystem Affected Versions Fixed Version
@fecommunity/reactpress
npm
< 3.7.0
3.7.0

References

Frequently Asked Questions

What is CVE-2026-61685?
CVE-2026-61685 is a security vulnerability in @fecommunity/reactpress involving ReactPress has SQL injection via dynamic column names in TypeORM query builders under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which @fecommunity/reactpress versions are affected?
Affected versions include releases prior to 3.7.0 across affected packages: @fecommunity/reactpress.
What version fixes CVE-2026-61685?
Upgrading to 3.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @fecommunity/reactpress affected?
Yes, @fecommunity/reactpress is affected in releases prior to 3.7.0. Upgrade your dependency to 3.7.0 or later.
What is the CVSS score of CVE-2026-61685?
CVE-2026-61685 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-61685?
CVE-2026-61685 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check npm dependencies for CVE-2026-61685?
Run the dependency tree command: 'npm ls @fecommunity/reactpress'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wmw4-mw6x-6vfm",
  "modified" : "2026-09-23T21:51:59Z",
  "published" : "2026-09-23T21:51:59Z",
  "aliases" : [ "CVE-2026-61685" ],
  "summary" : "ReactPress has SQL injection via dynamic column names in TypeORM query builders",
  "details" : "## Summary\n\nReactPress API list endpoints build TypeORM `QueryBuilder` conditions using\nunsanitized HTTP query parameter *names* as SQL column identifiers\n(e.g. `` `article.${key}` ``). TypeORM parameterizes values but not column\nnames, allowing unauthenticated attackers to inject SQL through crafted\nquery string keys.\n\n## Impact\n\nAn unauthenticated remote attacker can perform blind SQL injection against\nthe application database, potentially exfiltrating sensitive data (users,\nsettings, API keys, article content, etc.).\n\n## Affected endpoints (unauthenticated GET)\n\n- `GET /api/article`\n- `GET /api/comment`\n- `GET /api/file`\n- `GET /api/page`\n- `GET /api/Knowledge`\n\n## Affected code\n\nVulnerable pattern in `findAll()` methods, including but not limited to:\n\n- `server/src/modules/article/article.service.ts`\n- `server/src/modules/comment/comment.service.ts`\n- `server/src/modules/file/file.service.ts`\n- `server/src/modules/page/page.service.ts`\n- `server/src/modules/knowledge/knowledge.service.ts`\n\n## Remediation\n\n- Whitelist allowed filter column names before interpolating into SQL.\n- Upgrade to `@fecommunity/reactpress` >= 3.7.0.\n\n## Credit\n\nReported by lsr365400.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@fecommunity/reactpress"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.7.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.6.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/fecommunity/reactpress/security/advisories/GHSA-wmw4-mw6x-6vfm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-61685"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fecommunity/reactpress/commit/78ecb70af1c021455c05fdcbe137212c70e310d6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fecommunity/reactpress"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fecommunity/reactpress/releases/tag/v3.7.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-23T21:51:59Z",
    "nvd_published_at" : "2026-09-22T23:17:07Z"
  }
}