Skip to content

Commit 1305d99

Browse files
committed
Fixed an XSS vulnerability issue in the Query Tool and View/Edit Data (CVE-2025-2946). #8602
1 parent 6a850ff commit 1305d99

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/en_US/release_notes_9_2.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ Bug fixes
4949
| `Issue #8546 <https://github.com/pgadmin-org/pgadmin4/issues/8546>`_ - Fixed an issue where updating the grantee was not correctly applying the privileges.
5050
| `Issue #8577 <https://github.com/pgadmin-org/pgadmin4/issues/8577>`_ - Fixed an issue where the upgrade_check API returned an unexpected keyword argument 'cafile' due to changes in the urllib package supporting Python v3.13.
5151
| `Issue #8597 <https://github.com/pgadmin-org/pgadmin4/issues/8597>`_ - Fixed an issue where delete/rename was done on wrong file after sorting in Storage Manager.
52+
| `Issue #8602 <https://github.com/pgadmin-org/pgadmin4/issues/8602>`_ - Fixed an XSS vulnerability issue in the Query Tool and View/Edit Data (CVE-2025-2946).

web/pgadmin/static/js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ export function measureText(text, font) {
602602
measureText.ele.style.cssText = `position: absolute; visibility: hidden; white-space: nowrap; font: ${font}`;
603603
document.body.appendChild(measureText.ele);
604604
}
605-
measureText.ele.innerHTML = text;
605+
measureText.ele.textContent = text;
606606
const dim = measureText.ele.getBoundingClientRect();
607607
return {width: dim.width, height: dim.height};
608608
}

0 commit comments

Comments
 (0)