diff --git a/meta-oe/recipes-extended/pegtl/pegtl_4.0.0.bb b/meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb
similarity index 77%
rename from meta-oe/recipes-extended/pegtl/pegtl_4.0.0.bb
rename to meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb
index 898b161cad..2676231dca 100644
--- a/meta-oe/recipes-extended/pegtl/pegtl_4.0.0.bb
+++ b/meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb
@@ -3,12 +3,11 @@ HOMEPAGE = "https://github.com/taocpp/PEGTL"
 LICENSE = "BSL-1.0"
 LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
 
-SRC_URI = " \
-    git://github.com/taocpp/PEGTL.git;protocol=https;branch=main \
-    file://run-ptest \
-"
+SRC_URI = "git://github.com/taocpp/PEGTL.git;protocol=https;branch=4.x \
+           file://run-ptest \
+           "
 
-SRCREV = "708de300144de0ec8bd58491facfc5f34d0d0559"
+SRCREV = "9ec6da187f840d8e804d42b9b7867f79d5d6adc2"
 
 inherit cmake ptest
 
