CVE-2022-23543 HTML attributes when attaching a YouTube link to the post

Medium 6.3 Published Updated

Attackers can inject malicious HTML attributes into YouTube iframe embeds, enabling cross-site scripting attacks on the Silverware Games social network.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-23543?

CVE-2022-23543 is a medium-severity cross-site scripting vulnerability in mesosoi silverwaregames-io-issue-tracker, published on 19 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Silverware Games is a social network where people can play games online. Users can attach URLs to YouTube videos, the site will generate related `<iframe>` when the post will be published. The handler has some sort of protection so non-YouTube links can't be posted, as well as HTML tags are being stripped. However, it was still possible to add custom HTML attributes (e.g. `onclick=alert("xss")`) to the `<iframe>'. This issue was fixed in the version `1.1.34` and does not require any extra actions from our members. There has been no evidence that this vulnerability was used by anyone at this time.

Weakness: CWE-79, CWE-80

Which versions are affected by CVE-2022-23543?

It affects 1 product.

Products include Silverwaregames Silverwaregames.

How do I fix CVE-2022-23543?

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

There is no known exploitation of CVE-2022-23543 in the wild and no public exploit code.

Sources

Is CVE-2022-23543 in your software?

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

Check your SBOMs for free