{"id":"GHSA-wmw4-mw6x-6vfm","revision":"7f4205ca05004e2aa156ef7e3dbd12da","records":[{"revision":"7f4205ca05004e2aa156ef7e3dbd12da","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-wmw4-mw6x-6vfm","aliases":["CVE-2026-61685"],"title":"ReactPress has SQL injection via dynamic column names in TypeORM query builders","description":"## 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.","state":0,"publishedAt":"2026-09-23T21:51:59+00:00","modifiedAt":"2026-09-23T22:00:04.4246511+00:00","affected":[{"ecosystem":"npm","name":"@fecommunity/reactpress","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.7.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/fecommunity/reactpress/security/advisories/GHSA-wmw4-mw6x-6vfm","https://nvd.nist.gov/vuln/detail/CVE-2026-61685","https://github.com/fecommunity/reactpress/commit/78ecb70af1c021455c05fdcbe137212c70e310d6","https://github.com/fecommunity/reactpress","https://github.com/fecommunity/reactpress/releases/tag/v3.7.0"],"sourceUrl":"https://github.com/advisories/GHSA-wmw4-mw6x-6vfm","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wmw4-mw6x-6vfm","identifiers":["GHSA-wmw4-mw6x-6vfm","CVE-2026-61685"]},"retained":false,"historicalAffected":[]}],"coverage":[]}