DHI-7rvn-my27-ijmf-4mcg

Source
https://scout.docker.com/v/DHI-7rvn-my27-ijmf-4mcg
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-7rvn-my27-ijmf-4mcg
Upstream
Published
2026-11-14T07:57:14Z
Modified
2026-11-21T14:30:09Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
### Summary
Details

Summary

During IN_PLACE sanitization, a hook that removes an element can leave that element's detached descendants executable. A descendant image can retain its attacker-provided onload handler and fire after sanitize() returns, even though the returned root is clean and the image remains disconnected from the document.

Details

In DOMPurify 3.4.12, _sanitizeElements() in src/purify.ts:1862-1904 runs the beforeSanitizeElements or uponSanitizeElement hook and returns immediately when the hook detached the current node. The return does not call _neutralizeSubtree(currentNode).

The detached subtree is not added to DOMPurify.removed, so the post-walk IN_PLACE neutralization cannot reach it. If the browser queued a resource event while the application constructed the detached dirty root, a descendant can therefore retain its handler and execute after sanitization.

The hook only rejects the containing element and does not add or approve the event handler. DOMPurify's ordinary removal path de-arms the same queued event; only the hook-detachment early return skips the existing subtree neutralization.

PoC

Load the published dompurify@3.4.12 dist/purify.js before this script in Chromium:

<div id="result">not fired</div>
<script>
const root = document.createElement('div');
root.innerHTML = `
  <footer>
    <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
         onload="result.textContent = 'XSS after sanitize'">
  </footer>
  <div>safe</div>`;

DOMPurify.setConfig({
  ALLOWED_TAGS: ['div', '#text', 'footer'],
  IN_PLACE: true
});
DOMPurify.addHook('uponSanitizeElement', node => {
  if (node.tagName === 'FOOTER') node.remove();
});

DOMPurify.sanitize(root);
document.body.append(root);
</script>

sanitize() returns with no handler execution and the returned root contains only the safe div. After the event loop advances, the original image remains disconnected but its retained onload changes the page to XSS after sanitize.

As the claim-matched control, use the same detached input with ALLOWED_TAGS: ['div', '#text'] and no hook. DOMPurify's ordinary removal path removes the original image's handler, the returned root is still <div>safe</div>, and the marker does not fire.

Impact

In an application that uses IN_PLACE with the documented element-removal hook pattern, an attacker who can supply HTML can execute JavaScript in the integrating application's origin after the application sanitizes and renders that content.

The required non-default configuration is IN_PLACE plus a hook that removes a containing element. The hook does not add or approve the event handler, and the dirty root never needs to be connected before sanitization.

Suggested fix

Reuse the existing _neutralizeSubtree(currentNode) helper before returning from both hook-detachment branches in _sanitizeElements(). Add regressions for beforeSanitizeElements and uponSanitizeElement that retain a reference to a descendant resource element and verify that its event handler is removed after the hook detaches its ancestor.

References

Affected packages

Docker Hardened Images:Alpine:3.24
gitea-dev

Package

Name
gitea-dev
Purl
pkg:apk/dhi/gitea-dev

Affected ranges

Affected versions

1.*
1.26.4-r1
1.27.0-r1
1.27.0-r2
1.27.1-r0
1.27.1-r1
1.27.1-r2
1.27.1-r3
1.27.2-r0
1.27.2-r1
1.27.2-r2
1.27.2-r3
1.27.2-r4
1.27.3-r0
1.27.3-r1
1.27.3-r2
1.27.3-r3
1.27.3-r4
1.27.3-r5
1.27.3-r7
1.27.3-r8
1.27.3-r9
1.27.3-r10
1.27.3-r11
1.27.3-r12
1.27.3-r13
1.27.3-r14
1.27.3-r15
1.27.3-r16
1.27.3-r17
1.27.3-r18
1.27.3-r19
1.27.3-r20
28.*
28.3.0-r0
28.3.0-r1
28.3.0-r2
28.3.0-r3
28.3.0-r4
28.4.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
gitea-fips-dev

Package

Name
gitea-fips-dev
Purl
pkg:apk/dhi/gitea-fips-dev

Affected ranges

Affected versions

1.*
1.26.4-r1
1.27.0-r1
1.27.0-r2
1.27.1-r0
1.27.1-r1
1.27.1-r2
1.27.1-r3
1.27.2-r0
1.27.2-r1
1.27.2-r2
1.27.2-r3
1.27.2-r4
1.27.3-r0
1.27.3-r1
1.27.3-r2
1.27.3-r3
1.27.3-r4
1.27.3-r5
1.27.3-r7
1.27.3-r8
1.27.3-r9
1.27.3-r10
1.27.3-r11
1.27.3-r12
1.27.3-r13
1.27.3-r14
1.27.3-r15
1.27.3-r16
1.27.3-r17
1.27.3-r18
1.27.3-r19
1.27.3-r20
28.*
28.3.0-r0
28.3.0-r1
28.3.0-r2
28.3.0-r3
28.3.0-r4
28.4.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
gitea-fips

Package

Name
gitea-fips
Purl
pkg:apk/dhi/gitea-fips

Affected ranges

Affected versions

1.*
1.26.4-r1
1.27.0-r1
1.27.0-r2
1.27.1-r0
1.27.1-r1
1.27.1-r2
1.27.1-r3
1.27.2-r0
1.27.2-r1
1.27.2-r2
1.27.2-r3
1.27.2-r4
1.27.3-r0
1.27.3-r1
1.27.3-r2
1.27.3-r3
1.27.3-r4
1.27.3-r5
1.27.3-r7
1.27.3-r8
1.27.3-r9
1.27.3-r10
1.27.3-r11
1.27.3-r12
1.27.3-r13
1.27.3-r14
1.27.3-r15
1.27.3-r16
1.27.3-r17
1.27.3-r18
1.27.3-r19
1.27.3-r20
28.*
28.3.0-r0
28.3.0-r1
28.3.0-r2
28.3.0-r3
28.3.0-r4
28.4.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
gitea

Package

Name
gitea
Purl
pkg:apk/dhi/gitea

Affected ranges

Affected versions

1.*
1.26.4-r1
1.27.0-r1
1.27.0-r2
1.27.1-r0
1.27.1-r1
1.27.1-r2
1.27.1-r3
1.27.2-r0
1.27.2-r1
1.27.2-r2
1.27.2-r3
1.27.2-r4
1.27.3-r0
1.27.3-r1
1.27.3-r2
1.27.3-r3
1.27.3-r4
1.27.3-r5
1.27.3-r7
1.27.3-r8
1.27.3-r9
1.27.3-r10
1.27.3-r11
1.27.3-r12
1.27.3-r13
1.27.3-r14
1.27.3-r15
1.27.3-r16
1.27.3-r17
1.27.3-r18
1.27.3-r19
1.27.3-r20
28.*
28.3.0-r0
28.3.0-r1
28.3.0-r2
28.3.0-r3
28.3.0-r4
28.4.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
kiali-server-dev

Package

Name
kiali-server-dev
Purl
pkg:apk/dhi/kiali-server-dev

Affected ranges

Affected versions

2.*
2.30.0-r1
2.31.0-r0
2.31.0-r1
2.31.0-r2
2.31.0-r3
2.31.0-r4
2.32.0-r0
2.32.0-r1
2.32.0-r2
2.32.0-r3
2.33.0-r0
2.33.0-r1
2.33.0-r2
2.33.0-r3
2.33.0-r4
2.33.0-r5
2.33.0-r6
2.34.0-r0
2.34.0-r1
2.34.1-r0
2.34.1-r1
2.34.1-r2
2.34.1-r3
2.34.1-r4
2.35.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
kiali-server-fips-dev

Package

Name
kiali-server-fips-dev
Purl
pkg:apk/dhi/kiali-server-fips-dev

Affected ranges

Affected versions

2.*
2.30.0-r1
2.31.0-r0
2.31.0-r1
2.31.0-r2
2.31.0-r3
2.31.0-r4
2.32.0-r0
2.32.0-r1
2.32.0-r2
2.32.0-r3
2.33.0-r0
2.33.0-r1
2.33.0-r2
2.33.0-r3
2.33.0-r4
2.33.0-r5
2.33.0-r6
2.34.0-r0
2.34.0-r1
2.34.1-r0
2.34.1-r1
2.34.1-r2
2.34.1-r3
2.34.1-r4
2.35.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
kiali-server-fips

Package

Name
kiali-server-fips
Purl
pkg:apk/dhi/kiali-server-fips

Affected ranges

Affected versions

2.*
2.30.0-r1
2.31.0-r0
2.31.0-r1
2.31.0-r2
2.31.0-r3
2.31.0-r4
2.32.0-r0
2.32.0-r1
2.32.0-r2
2.32.0-r3
2.33.0-r0
2.33.0-r1
2.33.0-r2
2.33.0-r3
2.33.0-r4
2.33.0-r5
2.33.0-r6
2.34.0-r0
2.34.0-r1
2.34.1-r0
2.34.1-r1
2.34.1-r2
2.34.1-r3
2.34.1-r4
2.35.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
kiali-server

Package

Name
kiali-server
Purl
pkg:apk/dhi/kiali-server

Affected ranges

Affected versions

2.*
2.30.0-r1
2.31.0-r0
2.31.0-r1
2.31.0-r2
2.31.0-r3
2.31.0-r4
2.32.0-r0
2.32.0-r1
2.32.0-r2
2.32.0-r3
2.33.0-r0
2.33.0-r1
2.33.0-r2
2.33.0-r3
2.33.0-r4
2.33.0-r5
2.33.0-r6
2.34.0-r0
2.34.0-r1
2.34.1-r0
2.34.1-r1
2.34.1-r2
2.34.1-r3
2.34.1-r4
2.35.0-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
Docker Hardened Images:Debian:13
datahub-ingestion

Package

Name
datahub-ingestion
Purl
pkg:deb/dhi/datahub-ingestion

Affected ranges

Affected versions

1.*
1.5.0.7-0
1.6.0.1-0
1.6.0.1-1
1.6.0.1-2
1.6.0.1-3
1.6.0.2-0
1.6.0.2-1
1.7.0.10-0
1.7.0.12-0
1.7.0.13-0
1.7.0.14-0
1.7.0.14-1
1.7.0.14-2
1.7.0.16-0
1.7.0.16-1
1.7.0.17-0
1.7.0.17-1
1.7.0.17-2
1.7.0.17-3
1.7.0.18-0
1.7.0.19-0
1.7.0.19-1
1.7.0.19-2
1.7.0.19-3
1.7.0.19-4
1.7.0.19-5
1.7.0.19-6
1.7.0.20-6
1.7.0.20-7
1.7.0.20-8

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
grist

Package

Name
grist
Purl
pkg:deb/dhi/grist

Affected ranges

Affected versions

1.*
1.7.17-0
1.7.17-1
1.7.17-2
1.7.17-3
1.7.17-4
1.7.17-5
1.7.17-6
1.7.19-2
1.7.19-3
1.7.19-4
1.7.19-5
1.7.19-6
1.7.20-0
1.7.20-7
1.7.20-8
1.7.20-9
1.7.20-10
1.7.21-0
1.7.21-1
1.7.21-2
1.7.21-3
1.7.21-4
1.7.21-5
1.7.21-6
1.7.21-7
1.7.21-8
1.7.21-9
1.7.22-1
1.7.22-2
1.7.22-3
1.7.22-4
1.7.22-5
1.7.22-6
1.7.22-7
1.7.22-8
1.7.22-9
1.7.22-10
1.7.22-11
1.7.22-12
1.7.22-13

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
langfuse-2

Package

Name
langfuse-2
Purl
pkg:deb/dhi/langfuse-2

Affected ranges

Affected versions

2.*
2.95.12-0
2.95.12-1
2.95.12-2
2.95.12-3
2.95.12-4
2.95.12-5
2.95.12-6
2.95.12-7
2.95.12-8
2.95.12-9
2.95.12-10
2.95.12-11
2.95.12-12
2.95.12-13

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
opencost-ui

Package

Name
opencost-ui
Purl
pkg:deb/dhi/opencost-ui

Affected ranges

Affected versions

1.*
1.121.0-0
1.121.1-0
1.121.1-1
1.121.1-2
1.121.2-0
1.121.3-0
1.121.3-2
1.121.3-3
1.121.3-4
1.121.3-5
1.121.3-6
1.121.3-7
1.121.4-0
1.121.4-1

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
superset

Package

Name
superset
Purl
pkg:deb/dhi/superset

Affected ranges

Affected versions

6.*
6.1.0-0
6.1.0-1
6.1.0-2
6.1.0-3
6.1.0-4
6.1.0-5
6.1.0-6
6.1.0-7
6.1.0-8
6.1.0-9
6.1.0-10
6.1.0-11
6.1.0-12
6.1.0-13
6.1.0-14
6.1.0-15
6.1.0-16
6.1.0-17
6.1.0-18
6.1.0-19
6.1.0-20
6.1.0-21
6.1.0-22
6.1.0-23
6.1.0-24
6.1.0-25
6.1.0-26
6.1.0-27
6.1.0-28
6.1.0-29
6.1.0-30
6.1.0-31
6.1.0-32
6.1.0-33
6.1.0-34
6.1.0-35
6.1.0-36
6.1.0-37
6.1.0-38
6.1.0-39
6.1.0-40
6.1.0-41
6.1.0-42

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
uptime-kuma-1

Package

Name
uptime-kuma-1
Purl
pkg:deb/dhi/uptime-kuma-1

Affected ranges

Affected versions

1.*
1.23.17-0
1.23.17-1
1.23.17-2
1.23.17-3
1.23.17-4
1.23.17-5
1.23.17-6
1.23.17-7
1.23.17-8
1.23.17-9
1.23.17-11

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"
uptime-kuma-2

Package

Name
uptime-kuma-2
Purl
pkg:deb/dhi/uptime-kuma-2

Affected ranges

Affected versions

2.*
2.5.0-0
2.5.0-1
2.5.0-2
2.5.3-0
2.5.3-1
2.5.4-0
2.5.5-0
2.5.5-1
2.5.6-0
2.5.7-0
2.5.7-1
2.5.9-0
2.5.9-1
2.5.10-0
2.5.11-0
2.5.11-1
2.5.11-2
2.5.11-3
2.5.12-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7rvn-my27-ijmf-4mcg.json"