Check out https://extism.org, it is built for those kinds of use cases. However I think WASI and components could enhance it.
For example a SaaS services that accepts WASM plugins could provide a WASI that lets the plugin write to a object-store filesystem (like AWS S3) provided by the SaaS owner.