CVE-2022-2371 YaySMTP < 2.2.1 - Subscriber+ Stored Cross-Site Scripting
Subscribers can inject malicious scripts into YaySMTP settings due to missing authorization and escaping, potentially compromising admin sessions.
- 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-2371?
CVE-2022-2371 is a medium-severity cross-site scripting vulnerability in Unknown YaySMTP – Simple WP SMTP Mail, published on 8 Aug 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The YaySMTP WordPress plugin before 2.2.1 does not have proper authorisation when saving its settings, allowing users with a role as low as subscriber to change them, and use that to conduct Stored Cross-Site Scripting attack due to the lack of escaping in them as well.
Weakness: CWE-79
Which versions are affected by CVE-2022-2371?
It affects 1 product.
Products include Yaycommerce Yaysmtp.
How do I fix CVE-2022-2371?
No fix has been published for CVE-2022-2371 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-2371 being exploited?
There is no known exploitation of CVE-2022-2371 in the wild and no public exploit code.
Other vulnerabilities in Unknown YaySMTP – Simple WP SMTP Mail
- CVE-2025-0918 SMTP for SendGrid – YaySMTP <= 1.4 - Unauthenticated Stored Cross-Site Scripting via Email Logs
- CVE-2025-0953 SMTP for Sendinblue – YaySMTP <= 1.2 - Unauthenticated Stored Cross-Site Scripting via Email Logs
- CVE-2025-0916 YaySMTP 2.4.9 - 2.6.2 - Unauthenticated Stored Cross-Site Scripting
- CVE-2023-3093 YaySMTP <= 2.4.5 - Unauthenticated Stored Cross-Site Scripting via Email
- CVE-2022-2370 YaySMTP < 2.2.1 - Subscriber+ SMTP Credentials Leak
Sources
Also known as GHSA-8qx8-7fxh-rjvj.