CVE-2022-2372 YaySMTP < 2.2.2 - Admin+ Stored Cross-Site Scripting
Admin users can inject malicious scripts into YaySMTP settings, leading to stored XSS in multisite environments where unfiltered HTML is disabled.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-2372?
CVE-2022-2372 is a medium-severity cross-site scripting vulnerability in Unknown YaySMTP – Simple WP SMTP Mail, published on 8 Aug 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
The YaySMTP WordPress plugin before 2.2.2 does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks when the unfiltered_html capability is disallowed (for example in multisite setup)
Weakness: CWE-79
Which versions are affected by CVE-2022-2372?
It affects 1 product.
Products include Yaycommerce Yaysmtp.
How do I fix CVE-2022-2372?
No fix has been published for CVE-2022-2372 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-2372 being exploited?
There is no known exploitation of CVE-2022-2372 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-97cj-7h5h-q2gx.