CVE-2021-47983 WordPress Plugin Stripe Payments < 2.0.40 Stored XSS via currency_code

Medium 5.1 Published Updated

Authenticated attackers can inject malicious scripts via the currency_code setting, leading to arbitrary JavaScript execution in administrator browsers.

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-2021-47983?

CVE-2021-47983 is a medium-severity cross-site scripting vulnerability in mra13 Accept Stripe Payments, published on 8 Jun 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

WordPress Plugin Stripe Payments before 2.0.40 contains a stored cross-site scripting vulnerability that allows authenticated attackers to inject malicious scripts through the AcceptStripePayments-settings[currency_code] parameter. Attackers can submit POST requests to /wp-admin/options.php with script payloads in the currency_code field to execute arbitrary JavaScript in administrator browsers when settings are viewed.

Weakness: CWE-79

Which versions are affected by CVE-2021-47983?

How do I fix CVE-2021-47983?

No fix has been published for CVE-2021-47983 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-2021-47983 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-47983 exists.

Sources

Also known as GHSA-g9mx-rrvw-6m52.

Is CVE-2021-47983 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free