CVE-2021-22223
Description
Client-Side code injection through Feature Flag name in GitLab CE/EE starting with 11.9 allows a specially crafted feature flag name to PUT requests on behalf of other users via clicking on a link
Summary dbcve.org
A stored Cross-Site Scripting (XSS) vulnerability in GitLab's Feature Flag functionality allows attackers to inject malicious code into feature flag names. When other users view or interact with these crafted flag names (e.g., by clicking a link), the injected script executes and can perform PUT requests on behalf of the victim user, leading to unauthorized state changes.
Mitigation
Upgrade GitLab to the latest version receiving the security patch. If immediate upgrade is not possible, restrict Feature Flag creation/modification to trusted administrators only and monitor for suspicious flag names containing HTML/script content.