diff --git a/package.json b/package.json
index 014d357aa6..cd0b6fbd0e 100644
--- a/package.json
+++ b/package.json
@@ -82,7 +82,7 @@
     "react": "18.3.1",
     "react-dom": "18.3.1",
     "react-live": "4.1.8",
-    "react-modal": "3.16.1",
+    "react-modal": "3.16.2",
     "react-test-renderer": "18.3.1",
     "webpack": "5.97.1",
     "webpack-cli": "5.1.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index dde4818d07..adceb6aa6c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -118,8 +118,8 @@ importers:
         specifier: 4.1.8
         version: 4.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
       react-modal:
-        specifier: 3.16.1
-        version: 3.16.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
+        specifier: 3.16.2
+        version: 3.16.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
       react-test-renderer:
         specifier: 18.3.1
         version: 18.3.1(react@18.3.1)
@@ -3645,12 +3645,12 @@ packages:
       react: '>=18.0.0'
       react-dom: '>=18.0.0'
 
-  react-modal@3.16.1:
-    resolution: {integrity: sha512-VStHgI3BVcGo7OXczvnJN7yT2TWHJPDXZWyI/a0ssFNhGZWsPmB8cF0z33ewDXq4VfYMO1vXgiv/g8Nj9NDyWg==}
-    engines: {node: '>=8'}
+  react-modal@3.16.2:
+    resolution: {integrity: sha512-pTV7MC9/1UJ0BokLos19SAzshF57a6tpTqeJ5ZP6K8tKAOhbj8WwaOZVMvrbhqhLjdyojS3JIMuFcpqPW5ZNaw==}
+    engines: {node: '>=8 <18'}
     peerDependencies:
-      react: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18
-      react-dom: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18
+      react: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19
+      react-dom: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19
 
   react-shallow-renderer@16.15.0:
     resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==}
@@ -8622,7 +8622,7 @@ snapshots:
       sucrase: 3.35.0
       use-editable: 2.3.3(react@18.3.1)
 
-  react-modal@3.16.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
+  react-modal@3.16.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
     dependencies:
       exenv: 1.2.2
       prop-types: 15.8.1