I've used a product similar to this to repair a tyre:

https://www.autoseal.co.uk/about-2/

but it is designed to be installed before you have a problem. I believe it can be washed out later if required.