diff --git a/lib/config/presets/internal/replacements.ts b/lib/config/presets/internal/replacements.ts
index fb59322d3723a2847b16b6be3783af6c2671827a..d65bc04adcf2b4add94a964e7f19a7cdb9ac04b9 100644
--- a/lib/config/presets/internal/replacements.ts
+++ b/lib/config/presets/internal/replacements.ts
@@ -6,7 +6,10 @@ export const presets: Record<string, Preset> = {
     description: 'All replacements',
     extends: [
       'replacements:cucumber-to-scoped',
+      'replacements:hapi-to-scoped',
       'replacements:jade-to-pug',
+      'replacements:joi-to-scoped',
+      'replacements:joi-to-unscoped',
       'replacements:rollup-node-resolve-to-scoped',
     ],
   },
@@ -21,6 +24,18 @@ export const presets: Record<string, Preset> = {
       },
     ],
   },
+  'hapi-to-scoped': {
+    description: 'hapi became scoped',
+    packageRules: [
+      {
+        matchCurrentVersion: '>=18.0.0',
+        matchDatasources: ['npm'],
+        matchPackageNames: ['hapi'],
+        replacementName: '@hapi/hapi',
+        replacementVersion: '18.2.0',
+      },
+    ],
+  },
   'jade-to-pug': {
     description: 'Jade was renamed to Pug',
     packageRules: [
@@ -32,6 +47,30 @@ export const presets: Record<string, Preset> = {
       },
     ],
   },
+  'joi-to-scoped': {
+    description: 'joi became scoped under the hapi organization',
+    packageRules: [
+      {
+        matchCurrentVersion: '>=14.0.0',
+        matchDatasources: ['npm'],
+        matchPackageNames: ['joi'],
+        replacementName: '@hapi/joi',
+        replacementVersion: '14.4.0',
+      },
+    ],
+  },
+  'joi-to-unscoped': {
+    description: 'joi was moved out of the hapi organization',
+    packageRules: [
+      {
+        matchCurrentVersion: '>=17.0.0',
+        matchDatasources: ['npm'],
+        matchPackageNames: ['@hapi/joi'],
+        replacementName: 'joi',
+        replacementVersion: '17.1.1',
+      },
+    ],
+  },
   'rollup-node-resolve-to-scoped': {
     description: 'the node-resolve plugin for rollup became scoped',
     packageRules: [