Comments - [INSERT .. WITH RECURSIVE] statement generates strange [AUTO_INCREMENT] value
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Issues like MDEV-17377 where considered a bug for their wasting of auto_increment values so I do see this as a valid bug and might indeed have a simple fix.
Please do create a bug report.