diff --git a/core/modules/ckeditor5/tests/src/Nightwatch/Tests/drupalHtmlBuilderTest.js b/core/modules/ckeditor5/tests/src/Nightwatch/Tests/drupalHtmlBuilderTest.js
index f4f8f3bd13a90e575121884857e9969b0b870f8f..5db672324dcb90fb556c011ad839b2a882286459 100644
--- a/core/modules/ckeditor5/tests/src/Nightwatch/Tests/drupalHtmlBuilderTest.js
+++ b/core/modules/ckeditor5/tests/src/Nightwatch/Tests/drupalHtmlBuilderTest.js
@@ -1,6 +1,6 @@
-const assert = require('assert');
-const fs = require('fs');
-const path = require('path');
+const assert = require('node:assert');
+const fs = require('node:fs');
+const path = require('node:path');
 // eslint-disable-next-line import/no-extraneous-dependencies
 const { JSDOM } = require('jsdom');
 
diff --git a/core/modules/ckeditor5/webpack.config.js b/core/modules/ckeditor5/webpack.config.js
index 52b849cbc9178cc8ce2f63e605b62aac601c9d25..7d506e09abf413b3015124e360831c8d6578bcf2 100644
--- a/core/modules/ckeditor5/webpack.config.js
+++ b/core/modules/ckeditor5/webpack.config.js
@@ -1,5 +1,5 @@
-const path = require('path');
-const fs = require('fs');
+const path = require('node:path');
+const fs = require('node:fs');
 const webpack = require('webpack');
 const TerserPlugin = require('terser-webpack-plugin');
 
diff --git a/core/scripts/css/changeOrAdded.js b/core/scripts/css/changeOrAdded.js
index 53c586e2e66ab770caa947b61abe44232930821c..9f2767ba8402c5136414674900f46052eedf2e8f 100644
--- a/core/scripts/css/changeOrAdded.js
+++ b/core/scripts/css/changeOrAdded.js
@@ -1,4 +1,4 @@
-const fs = require('fs');
+const fs = require('node:fs');
 const log = require('./log');
 const compile = require('./compile');
 
diff --git a/core/scripts/css/check.js b/core/scripts/css/check.js
index 7ed236573c617a3a7e404aba51807a9e7ff62ceb..a2878e90ed88ba041cd8d3837d90254bd7b32009 100644
--- a/core/scripts/css/check.js
+++ b/core/scripts/css/check.js
@@ -1,4 +1,4 @@
-const fs = require('fs');
+const fs = require('node:fs');
 const log = require('./log');
 const compile = require('./compile');
 
diff --git a/core/scripts/css/compile.js b/core/scripts/css/compile.js
index e3a03396a1283eba4acab239437d646613e439fb..5c9426747e8562193bec8a50fb26212b9dcc08ef 100644
--- a/core/scripts/css/compile.js
+++ b/core/scripts/css/compile.js
@@ -1,5 +1,5 @@
 const log = require('./log');
-const fs = require('fs');
+const fs = require('node:fs');
 const postcss = require('postcss');
 const postcssImport = require('postcss-import');
 const postcssHeader = require('postcss-header');
diff --git a/core/scripts/css/postcss-watch.js b/core/scripts/css/postcss-watch.js
index d241c5b798e5cd2d193c9b33b73b1654a1058298..472c4a944b449981da35ca05734530413ed2b353 100644
--- a/core/scripts/css/postcss-watch.js
+++ b/core/scripts/css/postcss-watch.js
@@ -9,8 +9,8 @@
 
 'use strict';
 
-const fs = require('fs');
-const path = require('path');
+const fs = require('node:fs');
+const path = require('node:path');
 const chokidar = require('chokidar');
 
 const changeOrAdded = require('./changeOrAdded');
diff --git a/core/scripts/js/assets/process/jqueryui.js b/core/scripts/js/assets/process/jqueryui.js
index 449bb2aa8ff689a3ce15699973ab126708e1f7e7..601fbbecc16e38c9aa0bca6d04f46c37b4c92794 100644
--- a/core/scripts/js/assets/process/jqueryui.js
+++ b/core/scripts/js/assets/process/jqueryui.js
@@ -1,5 +1,5 @@
 const Terser = require('terser');
-const path = require('path');
+const path = require('node:path');
 
 /**
  * Process jQuery UI source files.
diff --git a/core/scripts/js/ckeditor5-check-plugins.js b/core/scripts/js/ckeditor5-check-plugins.js
index 982d665e19d82c29040eddca874c32a3530acc47..c858ab30e49a1c29d78323aff762b99fefc20c85 100644
--- a/core/scripts/js/ckeditor5-check-plugins.js
+++ b/core/scripts/js/ckeditor5-check-plugins.js
@@ -14,8 +14,8 @@
 
 const { globSync } = require("glob");
 const log = require("./log");
-const fs = require("fs").promises;
-const child_process = require("child_process");
+const fs = require("node:fs").promises;
+const child_process = require("node:child_process");
 
 async function getContents(files) {
   return Object.fromEntries(
diff --git a/core/scripts/js/ckeditor5-types-documentation.js b/core/scripts/js/ckeditor5-types-documentation.js
index 29fcb68ce54bd4e39bb1456de249490132673e19..a443f6101c5b179635f8889c8b5f46a43389d52e 100644
--- a/core/scripts/js/ckeditor5-types-documentation.js
+++ b/core/scripts/js/ckeditor5-types-documentation.js
@@ -14,7 +14,7 @@
 
 const { globSync } = require('glob');
 const log = require('./log');
-const fs = require('fs');
+const fs = require('node:fs');
 
 /**
  * A list of regex used to alias CKEditor 5 types.
diff --git a/core/scripts/js/vendor-update.js b/core/scripts/js/vendor-update.js
index 379117b686ae3dcf817088400639e101c6efb8de..db7e8a36670b48fde9cbb70da0c50d33a837eb01 100644
--- a/core/scripts/js/vendor-update.js
+++ b/core/scripts/js/vendor-update.js
@@ -7,8 +7,8 @@
  * build step.
  */
 
-const path = require('path');
-const { copyFile, writeFile, readFile, chmod, mkdir } = require('fs').promises;
+const path = require('node:path');
+const { copyFile, writeFile, readFile, chmod, mkdir } = require('node:fs').promises;
 const ckeditor5Files = require('./assets/ckeditor5Files');
 const jQueryUIProcess = require('./assets/process/jqueryui');
 const mapProcess = require('./assets/process/map');
diff --git a/core/tests/Drupal/Nightwatch/Commands/drupalInstall.js b/core/tests/Drupal/Nightwatch/Commands/drupalInstall.js
index c38b21ccdf2dd05eee3b0ab95e49b7db90e16ca1..9022592467ed29e739f60bd3051cfe16395242dd 100644
--- a/core/tests/Drupal/Nightwatch/Commands/drupalInstall.js
+++ b/core/tests/Drupal/Nightwatch/Commands/drupalInstall.js
@@ -1,5 +1,5 @@
-const { execSync } = require('child_process');
-const { URL } = require('url');
+const { execSync } = require('node:child_process');
+const { URL } = require('node:url');
 const { commandAsWebserver } = require('../globals');
 
 /**
diff --git a/core/tests/Drupal/Nightwatch/Commands/drupalLoginAsAdmin.js b/core/tests/Drupal/Nightwatch/Commands/drupalLoginAsAdmin.js
index e475026b16e6d1cf617b9757896c45971436a724..28b1a3468bd591de1ae85dc22094cc5108ba5b70 100644
--- a/core/tests/Drupal/Nightwatch/Commands/drupalLoginAsAdmin.js
+++ b/core/tests/Drupal/Nightwatch/Commands/drupalLoginAsAdmin.js
@@ -1,4 +1,4 @@
-const { execSync } = require('child_process');
+const { execSync } = require('node:child_process');
 const { commandAsWebserver } = require('../globals');
 
 /**
diff --git a/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js b/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js
index d904f494ebf14dd2ccc92f11ff2b849e569c79b7..0ad21d00b9fe7c1357d0b188b3e4837f3aa24696 100644
--- a/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js
+++ b/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js
@@ -1,4 +1,4 @@
-const { execSync } = require('child_process');
+const { execSync } = require('node:child_process');
 const { commandAsWebserver } = require('../globals');
 
 /**
diff --git a/core/tests/Drupal/Nightwatch/globals.js b/core/tests/Drupal/Nightwatch/globals.js
index ca43a26af46d5e168db9e0f9bed2180f7e45744a..5d79d60e8e921057563958dd8d24f05925b07a74 100644
--- a/core/tests/Drupal/Nightwatch/globals.js
+++ b/core/tests/Drupal/Nightwatch/globals.js
@@ -1,5 +1,5 @@
-const path = require('path');
-const fs = require('fs');
+const path = require('node:path');
+const fs = require('node:fs');
 const mkdirp = require('mkdirp');
 const nightwatchSettings = require('./nightwatch.conf');
 
diff --git a/core/tests/Drupal/Nightwatch/nightwatch.conf.js b/core/tests/Drupal/Nightwatch/nightwatch.conf.js
index f0950fc228c31b546ecac83ca4e96dbe2f23ddd5..a0d46e010f476777582534755c6885f7e8b0ea16 100644
--- a/core/tests/Drupal/Nightwatch/nightwatch.conf.js
+++ b/core/tests/Drupal/Nightwatch/nightwatch.conf.js
@@ -1,5 +1,5 @@
 // cspell:ignore testcases
-const path = require('path');
+const path = require('node:path');
 const { globSync } = require('glob');
 
 // Find directories which have Nightwatch tests in them.