GHSA-72mh-hgpm-6384

Suggest an improvement
Source
https://github.com/advisories/GHSA-72mh-hgpm-6384
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-72mh-hgpm-6384/GHSA-72mh-hgpm-6384.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-72mh-hgpm-6384
Aliases
Published
2025-12-19T19:17:26Z
Modified
2026-02-03T03:01:27.169854Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 0.6 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U CVSS Calculator
Summary
Orejime has executable code in HTML attributes
Details

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 https://github.com/boscop-fr/orejime/issues/142 for the original report.

Patches

The problem has been patched by https://github.com/boscop-fr/orejime/pull/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.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed_at": "2025-12-19T19:17:26Z",
    "nvd_published_at": "2025-12-19T17:15:53Z",
    "severity": "LOW",
    "github_reviewed": true
}
References

Affected packages

npm / orejime

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-72mh-hgpm-6384/GHSA-72mh-hgpm-6384.json"