Skip to content
OpenAdvisories
Medium · 6.3 CVE-2023-23913 EUVD-2023-1918GHSA-xp5h-f8jf-rc8q

rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements

Published Jan 9, 2025 · Updated Jan 9, 2025 · Assigned by hackerone

Description

There is a potential DOM based cross-site scripting issue in rails-ujs which leverages the Clipboard API to target HTML elements that are assigned the contenteditable attribute. This has the potential to occur when pasting malicious HTML content from the clipboard that includes a data-method, data-remote or data-disable-with attribute.

Affected products

VendorProductAffectedFixed
Rails rails-ujs 6.1.7.3 – < 6.1.7.3, 7.0.4.3 – < 7.0.4.3 6.1.7.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2:6.1.7.3+dfsg-1 —
Debian 13 rails 2:6.1.7.3+dfsg-1 —
Debian 12 rails 2:6.1.7.3+dfsg-1 —
Debian 11 rails 2:6.0.3.7+dfsg-2+deb11u2 DSA-5389-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rails No fix yet —
Ubuntu 26.04 LTS rails No fix yet —
Ubuntu 25.10 rails No fix yet —
Ubuntu 24.04 LTS rails No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rails No fix yet —
Ubuntu Pro 20.04 LTS rails No fix yet —
Ubuntu Pro 18.04 LTS rails No fix yet —
Ubuntu Pro 16.04 LTS rails No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP5 rubygem-actionview-5_1 5.1.4-150000.3.9.1 SUSE-SU-2023:3813-1
SLES 15 SP4 rubygem-actionview-5_1 5.1.4-150000.3.9.1 SUSE-SU-2023:3813-1
SLES 15 SP3 rubygem-actionview-5_1 5.1.4-150000.3.9.1 SUSE-SU-2023:3813-1
SLES 15 SP2 rubygem-actionview-5_1 5.1.4-150000.3.9.1 SUSE-SU-2023:3813-1
SLES 15 SP1 rubygem-actionview-5_1 5.1.4-150000.3.9.1 SUSE-SU-2023:3813-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 rubygem-actionview-5_1 5.1.4-150000.3.9.1 SUSE-SU-2023:3813-1
openSUSE Leap 15.4 rubygem-actionview-5_1 5.1.4-150000.3.9.1 SUSE-SU-2023:3813-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionview >= 5.1.0, < 6.1.7.3 6.1.7.3 GHSA-xp5h-f8jf-rc8q
RubyGems actionview >= 7.0.0, < 7.0.4.3 7.0.4.3 GHSA-xp5h-f8jf-rc8q

Advisories 4

References