diff --git a/lib/util/merge-confidence/index.ts b/lib/util/merge-confidence/index.ts
index 56f2f177a52870955d1907202f38bd70ba13d402..26be764a898d8cb378b2b455288d7e342accb134 100644
--- a/lib/util/merge-confidence/index.ts
+++ b/lib/util/merge-confidence/index.ts
@@ -7,6 +7,7 @@ import * as packageCache from '../cache/package';
 import { parseJson } from '../common';
 import * as hostRules from '../host-rules';
 import { Http } from '../http';
+import { regEx } from '../regex';
 import { ensureTrailingSlash, joinUrlParts } from '../url';
 import { MERGE_CONFIDENCE } from './common';
 import type { MergeConfidence } from './types';
@@ -164,7 +165,7 @@ async function queryApi(
     return 'neutral';
   }
 
-  const escapedPackageName = packageName.replace('/', '%2f');
+  const escapedPackageName = packageName.replace(regEx(/\//g), '%2f');
   const url = joinUrlParts(
     apiBaseUrl,
     'api/mc/json',