3.1.65 (#1438)

diff --git a/bazel/emscripten_toolchain/toolchain.bzl b/bazel/emscripten_toolchain/toolchain.bzl
index c3c9f43..e7c1f45 100644
--- a/bazel/emscripten_toolchain/toolchain.bzl
+++ b/bazel/emscripten_toolchain/toolchain.bzl
@@ -934,7 +934,7 @@
                 "-iwithsysroot" + "/include/compat",
                 "-iwithsysroot" + "/include",
                 "-isystem",
-                emscripten_dir + "/lib/clang/19/include",
+                emscripten_dir + "/lib/clang/20/include",
             ],
         ),
         # Inputs and outputs
@@ -1101,7 +1101,7 @@
         emscripten_dir + "/emscripten/cache/sysroot/include/c++/v1",
         emscripten_dir + "/emscripten/cache/sysroot/include/compat",
         emscripten_dir + "/emscripten/cache/sysroot/include",
-        emscripten_dir + "/lib/clang/19/include",
+        emscripten_dir + "/lib/clang/20/include",
     ]
 
     artifact_name_patterns = []
diff --git a/bazel/revisions.bzl b/bazel/revisions.bzl
index 613f479..794c5d5 100644
--- a/bazel/revisions.bzl
+++ b/bazel/revisions.bzl
@@ -2,6 +2,13 @@
 # DO NOT MODIFY
 
 EMSCRIPTEN_TAGS = {
+    "3.1.65": struct(
+        hash = "fdcf56c75a1d27fdff6525a7e03423595485ca19",
+        sha_linux = "b2b7de13d37c4c5126e6c6a077e6019ebacc78ef1fb1b35b9035f03975f5ffaa",
+        sha_mac = "cc50b829a21a041979e0941cfd2047d30a06e3c4a8fd9f662ecdc12a0ab40535",
+        sha_mac_arm64 = "db4430db6a085d6ed5284917e632541dad3ce0a9464659fb674055247ad059d0",
+        sha_win = "e72ae4ec3231d9a492eadbf77ff28c13efd90307a69df04234792e67a001d05e",
+    ),
     "3.1.64": struct(
         hash = "fd61bacaf40131f74987e649a135f1dd559aff60",
         sha_linux = "c39de24beca60fd580f6dff0eca0e275016042a30234588b19eda82397e299f3",
diff --git a/emscripten-releases-tags.json b/emscripten-releases-tags.json
index b4abd74..f3e7395 100644
--- a/emscripten-releases-tags.json
+++ b/emscripten-releases-tags.json
@@ -1,6 +1,6 @@
 {
   "aliases": {
-    "latest": "3.1.64",
+    "latest": "3.1.65",
     "latest-sdk": "latest",
     "latest-arm64-linux": "latest",
     "latest-64bit": "latest",
@@ -10,6 +10,8 @@
     "latest-releases-upstream": "latest"
   },
   "releases": {
+    "3.1.65": "fdcf56c75a1d27fdff6525a7e03423595485ca19",
+    "3.1.65-asserts": "3231fb47481b2248c31002cdd7324a9155135ce0",
     "3.1.64": "fd61bacaf40131f74987e649a135f1dd559aff60",
     "3.1.64-asserts": "42c1d51ceb8e41e70ce1d8dc1bc534c0f609c196",
     "3.1.63": "aeb36a44b29e8ca9f4c7efbb4735b69003ac2bb9",