diff --git a/scripts/contrib/improve_kernel_cve_report.py b/scripts/contrib/improve_kernel_cve_report.py
index 76ba54d835..3446527654 100755
--- a/scripts/contrib/improve_kernel_cve_report.py
+++ b/scripts/contrib/improve_kernel_cve_report.py
@@ -240,23 +240,28 @@ def read_debugsources(file_path):
     '''
     Read zstd file from pkgdata to extract sources
     '''
-    import zstandard as zstd
     import itertools
     # Decompress the .zst file
     cfiles = set()
-    with open(file_path, 'rb') as fh:
-        dctx = zstd.ZstdDecompressor()
-        with dctx.stream_reader(fh) as reader:
-            decompressed_bytes = reader.read()
-            json_data = json.loads(decompressed_bytes)
-            # We need to remove one level from the debug sources
-            for source_list in json_data.values():
-                for source in source_list:
-                    # entries are empty if the kernel has no debug info
-                    if "/" not in source:
-                        continue
-                    src = source.split("/",1)[1]
-                    cfiles.add(src)
+    try:
+        import zstandard as zstd
+        with open(file_path, 'rb') as fh:
+            with zstd.ZstdDecompressor().stream_reader(fh) as reader:
+                decompressed_bytes = reader.read()
+    except ImportError:
+        # zstd is a Yocto host tool: use it if the python module is missing
+        import subprocess
+        decompressed_bytes = subprocess.run(["zstd", "-dc", file_path],
+                                            check=True, capture_output=True).stdout
+    json_data = json.loads(decompressed_bytes)
+    # We need to remove one level from the debug sources
+    for source_list in json_data.values():
+        for source in source_list:
+            # entries are empty if the kernel has no debug info
+            if "/" not in source:
+                continue
+            src = source.split("/",1)[1]
+            cfiles.add(src)
     if not cfiles:
         sys.exit(f"{file_path} lists no compiled sources: "
                  "is the kernel built without debug info (CONFIG_DEBUG_INFO)?")
