Querydsl 5.1.0 and OpenFeign Querydsl 6.8 allows SQL/HQL injection in orderBy in JPAQuery. NOTE: this is disputed by a Querydsl community member because the product is not intended to defend against a developer who uses untrusted input directly in query construction.
https://github.com/advisories/GHSA-6q3q-6v5j-h6vg
https://www.csirt.sk/querydsl-java-library-vulnerability-permits-sql-hql-injection.html
https://github.com/spring-projects/spring-data-jpa/issues/3693
https://github.com/querydsl/querydsl/releases/tag/QUERYDSL_5_1_0
https://github.com/querydsl/querydsl/issues/3757
https://github.com/OpenFeign/querydsl/releases/tag/6.10.1
https://github.com/OpenFeign/querydsl/releases/tag/5.6.1
https://github.com/OpenFeign/querydsl/pull/743
Published: 2024-11-20
Updated: 2025-02-21
Base Score: 8.5
Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:P
Severity: High
Base Score: 8.2
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
Severity: High
Base Score: 8.8
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
Severity: High
EPSS: 0.00111