GHSA-q9j3-4ghj-6h57 Inadequate XSS Prevention in CodeIgniter/Framework Security Library
The CodeIgniter Framework Security Library failed to properly sanitize input, allowing attackers to bypass XSS protections and execute scripts in user browsers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-q9j3-4ghj-6h57?
GHSA-q9j3-4ghj-6h57 is a cross-site scripting vulnerability in codeigniter/framework, published on 15 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The xss_clean() method in the Security Library of CodeIgniter/Framework, specifically in versions before 3.0.3, exhibited a vulnerability that allowed certain Cross-Site Scripting (XSS) vectors to bypass its intended protection mechanisms.
The xss_clean() method is designed to sanitize input data by removing potentially malicious content, thus preventing XSS attacks. However, in versions prior to 3.0.3, it was discovered that the method did not adequately mitigate specific XSS vectors, leaving a potential security gap.
Which versions are affected by GHSA-q9j3-4ghj-6h57?
2 open source packages ship an affected version, including codeigniter/framework.
| Package | Affected | Fixed in |
|---|---|---|
codeigniter/framework Packagist | All versions | 3.0.3 |
codeigniter/framework Packagist | All versions | 3.0.3 |
How do I fix GHSA-q9j3-4ghj-6h57?
Upgrade codeigniter/framework to 3.0.3 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is GHSA-q9j3-4ghj-6h57 being exploited?
There is no known exploitation of GHSA-q9j3-4ghj-6h57 in the wild and no public exploit code.