CVE-2026-77398
LabelU: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- Severity
- medium CVSS 6.5 (v3.1)
- Affects
- labelU · opendatalab
- Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command
- Published
- 3 December 2026 by GitHub_M
LabelU is a data annotation platform designed for handling multimodal data. Prior to version 1.5.3, the sort value was interpolated verbatim into an ORDER BY clause via a raw SQLAlchemy text() f-string in crud_sample.list_by. A route-level regex guard was intended to restrict the value to a fixed set of column:direction pairs, but Pydantic v2 applies the pattern with an unanchored re.search, so any value merely containing a valid pair (e.g. updated_at:asc,) passed validation and reached the raw SQL. Because labelU allows open self-registration, any remote attacker can obtain the authenticated role required to reach this endpoint. The flaw permits blind boolean-based extraction of arbitrary data (e.g. other users' bcrypt password hashes). This issue has been patched in version 1.5.3.
Our coverage
We have not written about this one. Know why it matters? Send a tip.