diff --git a/lib/workers/repository/process/lookup/index.ts b/lib/workers/repository/process/lookup/index.ts index a946363ce64bfbc5ac859637b2efde5784a63596..93cb4189a0a908fc25cb096643283958eb30d677 100644 --- a/lib/workers/repository/process/lookup/index.ts +++ b/lib/workers/repository/process/lookup/index.ts @@ -205,9 +205,16 @@ export async function lookupUpdates( }); } let filterStart = currentVersion; - if (lockedVersion && rangeStrategy === 'update-lockfile') { - // Look for versions greater than the current locked version that still satisfy the package.json range - filterStart = lockedVersion; + if (lockedVersion) { + // istanbul ignore if + if (!versioning.isVersion(lockedVersion)) { + res.skipReason = SkipReason.InvalidVersion; + return res; + } + if (rangeStrategy === 'update-lockfile') { + // Look for versions greater than the current locked version that still satisfy the package.json range + filterStart = lockedVersion; + } } // Filter latest, unstable, etc let filteredReleases = filterVersions(