Skip to content

Executable code in HTML attributes

Low
felixgirault published GHSA-72mh-hgpm-6384 Dec 19, 2025

Package

npm orejime (npm)

Affected versions

<2.3.2

Patched versions

2.3.2

Description

Impact

On HTML elements handled by Orejime, one could run malicious code by embedding javascript: code within data attributes.
When consenting to the related purpose, Orejime would turn data attributes into unprefixed ones (i.e. data-href into href), thus executing the code.

This shouldn't have any impact on most setups, as elements handled by Orejime are generally hardcoded.
The problem would only arise if somebody could inject HTML code within pages.

See #142 for the original report.

Patches

The problem has been patched by #143.
It is available in version 2.3.2.

Workarounds

The problem can be fixed outside of Orejime by sanitizing attributes which could contain executable code.

Severity

Low

CVE ID

CVE-2025-68457

Weaknesses

No CWEs

Credits