Skip to content

Commit cdeb18f

Browse files
committed
Fixed Cross-Origin Opener Policy (COOP) vulnerability in the OAuth 2.0 authentication flow (CVE-2025-9636). #9114
1 parent 0de635c commit cdeb18f

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

docs/en_US/release_notes_9_8.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ Bug fixes
3535

3636
| `Issue #9090 <https://github.com/pgadmin-org/pgadmin4/issues/9090>`_ - Pin Paramiko to version 3.5.1 to fix the DSSKey error introduced in the latest release.
3737
| `Issue #9095 <https://github.com/pgadmin-org/pgadmin4/issues/9095>`_ - Fixed an issue where pgAdmin config migration was failing while upgrading to v9.7.
38+
| `Issue #9114 <https://github.com/pgadmin-org/pgadmin4/issues/9114>`_ - Fixed Cross-Origin Opener Policy (COOP) vulnerability in the OAuth 2.0 authentication flow (CVE-2025-9636).
3839
| `Issue #9116 <https://github.com/pgadmin-org/pgadmin4/issues/9116>`_ - Fixed an issue where editor shortcuts fail when using Option key combinations on macOS, due to macOS treating Option+Key as a different key input.

web/config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,17 @@
129129
# See https://tools.ietf.org/html/rfc7034 for more info.
130130
X_FRAME_OPTIONS = "SAMEORIGIN"
131131

132+
133+
# The Cross-Origin-Opener-Policy allows a website to control whether
134+
# a new top-level document, opened using Window.open() or by navigating
135+
# to a new page, is opened in the same browsing context group (BCG)
136+
# or in a new browsing context group.
137+
# Set to 'unsafe-none', 'same-origin-allow-popups', 'same-origin',
138+
# or 'noopener-allow-popups'
139+
140+
CROSS_ORIGIN_OPENER_POLICY = "same-origin"
141+
142+
132143
# The Content-Security-Policy header allows you to restrict how resources
133144
# such as JavaScript, CSS, or pretty much anything that the browser loads.
134145
# see https://content-security-policy.com/#source_list for more info

web/pgadmin/utils/security_headers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def set_response_headers(response):
2121
'X_CONTENT_TYPE_OPTIONS': 'X-Content-Type-Options',
2222
'X_XSS_PROTECTION': 'X-XSS-Protection',
2323
'WEB_SERVER': 'Server',
24+
'CROSS_ORIGIN_OPENER_POLICY': 'Cross-Origin-Opener-Policy'
2425
}
2526

2627
# X-Frame-Options for security

0 commit comments

Comments
 (0)