CVE-2022-50940 Knap Advanced PHP Login 3.1.3 Persistent Cross-Site Scripting via Name Parameter
Remote attackers can inject malicious scripts via the name parameter, leading to session hijacking and phishing in the Knap Advanced PHP Login application.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-50940?
CVE-2022-50940 is a medium-severity cross-site scripting vulnerability in ajay138 Knap Advanced PHP Login, published on 1 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Knap Advanced PHP Login 3.1.3 contains a persistent cross-site scripting vulnerability that allows remote attackers to inject malicious script code in the name parameter. Attackers can exploit the vulnerability to execute arbitrary scripts in users and activity log backend modules, potentially leading to session hijacking and persistent phishing attacks.
Weakness: CWE-79
Which versions are affected by CVE-2022-50940?
How do I fix CVE-2022-50940?
No fix has been published for CVE-2022-50940 yet. Limit exposure of the affected software until one is available.
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 CVE-2022-50940 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-50940 exists.
Sources
Also known as GHSA-ghjx-f567-jrj4.