diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt
index 22bd95f10d298f87dd3571d4a8bd521c9993eb86..2509737d87a30d930c02a9352b538730b0e3116e 100644
--- a/homeassistant/package_constraints.txt
+++ b/homeassistant/package_constraints.txt
@@ -136,6 +136,9 @@ backoff>=2.0
 # v2 has breaking changes (#99218).
 pydantic==1.10.17
 
+# Required for Python 3.12.4 compatibility (#119223).
+mashumaro>=3.13.1
+
 # Breaks asyncio
 # https://github.com/pubnub/python/issues/130
 pubnub!=6.4.0
diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py
index 434b4d0071f648c08d5e787894fd152ae8ce9eca..3c593a2bdf76443fdc23274a0b2de77723c28e1c 100755
--- a/script/gen_requirements_all.py
+++ b/script/gen_requirements_all.py
@@ -157,6 +157,9 @@ backoff>=2.0
 # v2 has breaking changes (#99218).
 pydantic==1.10.17
 
+# Required for Python 3.12.4 compatibility (#119223).
+mashumaro>=3.13.1
+
 # Breaks asyncio
 # https://github.com/pubnub/python/issues/130
 pubnub!=6.4.0