Discovered about 1 year ago
Source: static code analysis
Category: SQL Injection
Confidence level: Weak

Problem

Possible SQL injection

Location

app/models/concerns/issuable.rb:331

joins(:labels).where(:labels => ({ :title => title })).group(*grouping_columns(sort)).having("COUNT(DISTINCT labels.title) = #{title.size}")

Category description: SQL injection is when a user is able to manipulate a value which is used unsafely inside a SQL query.

Solution: fix the issue in app/models/concerns/issuable.rb or mark it as false positive.