Oracle puts WebAssembly modules inside the database
Oracle's Multilingual Engine, or MLE, has run JavaScript inside Oracle Database since 21c. With Release Update 23.26.4, it also runs WebAssembly modules. The feature is available now on Autonomous Database, with other deployment options to follow. Programs written in C, Rust, or Go can be compiled to Wasm, stored as an MLE module, loaded through JavaScript bindings, and called as part of database logic.
Oracle's examples are image resizing and, more tentatively, optical character recognition. A Wasm library can resize an image stored in the database, or an OCR library with compatible Wasm modules and JavaScript bindings might be able to process a document without moving it to an external service. Those are ordinary examples, but they point at a larger architectural shift: user code can run next to the data instead of in an application server that fetches the data over a network.
That shift is the interesting part, and it is also the risky part. Running a new runtime inside the database process puts a lot of trust in that runtime. The announcement describes the developer workflow and a couple of use cases, but it does not describe the sandbox, the memory limits, the supported Wasm proposals, or the performance characteristics. Those are exactly the details that determine whether the feature is safe to use in production.
What Oracle actually shipped
The workflow is straightforward. A developer compiles a library to Wasm, stores the binary as an MLE module, and loads the JavaScript bindings as a JavaScript module. The JavaScript code imports the Wasm module and calls its functions. Those functions become part of the database's logic, which means they can be invoked from SQL, PL/SQL, or other MLE JavaScript code, depending on how the application is structured.
Oracle says the feature is available on Autonomous Database now and will come to other deployment options shortly. That is a meaningful limitation. Autonomous Database is Oracle's managed cloud service, where Oracle controls the infrastructure and the patching. The security and operational story may be different on-premises, where customers run their own database instances and have different upgrade cadences. Until Oracle publishes the details for those deployments, teams should not assume the same behavior.
The supported languages are C, Rust, and Go, but the word "suitable" is doing a lot of work. Not every library in those languages will compile to Wasm, and not every compiled library will work inside MLE. A library that depends on threads, sockets, filesystem access, or platform-specific system calls may not have a path to Wasm, or may need a WASI runtime that Oracle has not described. The announcement gives image resizing as an example, which is a good fit: it is CPU-bound, self-contained, and operates on a byte buffer. OCR is a harder case because it may need large models, fonts, and complex dependencies.
Why running code next to the data matters
The traditional architecture for image processing in a database is to store the image in a BLOB, fetch it into an application server, process it with a library, and write the result back. That works, but it moves the image twice over the network, copies it through multiple buffers, and adds latency. If the image is large, or if the workload is high-volume, the network and memory overhead can dominate the actual computation.
Running the Wasm module inside the database removes those copies. The image is already in the database's buffer cache or on storage. The Wasm module can operate on it in the same process, and the result can be written back in the same transaction. That is a real advantage for data-local processing. It also makes it easier to apply database security policies, because the processing happens inside the database's authorization model rather than in an external service with its own credentials.
The same argument applies to other CPU-bound transformations: parsing, compression, encryption, format conversion, scoring, and feature extraction. If the data is already in the database and the operation is deterministic, moving the code to the data can be cheaper than moving the data to the code. This is the same reason databases have stored procedures, user-defined functions, and in-database machine learning. Wasm adds a portable binary format and a growing ecosystem of libraries.
The advantage is not universal. If the operation needs a GPU, a specialized accelerator, a large external model, or a network service, running it inside the database may be the wrong choice. If the operation is short and the data is small, the overhead of loading a Wasm module may exceed the savings from avoiding a network round trip. The decision depends on the workload, and Oracle's announcement does not provide the measurements needed to make it.
The new runtime is inside the trust boundary
The most important security question is not whether Wasm is "safe." It is what the Wasm module is allowed to do inside the database process. Wasm has a strong sandboxing model in principle: a module cannot access memory outside its linear memory, cannot make syscalls directly, and can only call host functions that the embedder provides. But the embedder decides which host functions exist, how memory is limited, how exceptions are handled, and how modules are isolated from each other.
Oracle's post does not describe those decisions. It does not say whether modules run in separate stores, whether they share a linear memory pool, whether they can allocate unbounded memory, whether they can spawn threads, or whether they can block the database's worker threads. It does not say how a malicious or buggy module is contained, or what happens when a module panics, loops forever, or exhausts memory. Those are not academic concerns. A database is a long-lived process with a large amount of shared state, and a runtime that can stall or crash that process is a serious risk.
The supply-chain question is just as important. A Wasm module is a binary artifact. If a team downloads a prebuilt module from a package registry, it is trusting the publisher, the build pipeline, and the registry. Wasm's sandbox reduces the impact of a compromised module, but it does not eliminate it. A module that is allowed to read sensitive data, call host functions, or write to the database can still do damage within the permissions it has. The same due diligence that applies to a native extension applies to a Wasm extension.
The announcement's lack of detail is not unusual for an early feature. Oracle says it will publish more technical examples and update the MLE LiveLabs. Those materials may answer the sandbox and memory questions. Until they do, teams should treat the feature as promising but unproven for sensitive workloads.
What the announcement leaves unspecified
The list of unknowns is long. Oracle does not specify the supported Wasm proposals, the maximum module size, the memory limits per module or per session, the supported WASI interfaces, the available host functions, the supported compilers and language runtimes, or the performance overhead compared with native code. It does not say whether modules can access the network, the filesystem, or other database resources. It does not say how debugging, profiling, and error reporting work.
Those details matter for the same reason they matter in any runtime. A Wasm module that cannot access the network is a different product from one that can. A module with a 64 MB memory limit is a different product from one with a 4 GB limit. A module that can call arbitrary host functions is a different security proposition from one that can only operate on a byte buffer. The announcement's examples suggest a narrow, data-local model, but it does not commit to one.
The deployment story is also incomplete. Autonomous Database is a managed service, so Oracle can control the runtime version and the patch level. On-premises deployments have different constraints. If Oracle later brings the feature to Exadata or to customer-managed cloud instances, customers will need to know how the runtime is updated, how vulnerabilities are patched, and how the feature interacts with their own security policies. Those questions are not answered yet.
How to evaluate it before production
The first step is to pick a workload where the data-locality benefit is clear and the security risk is bounded. Image resizing is a good example because it is deterministic, CPU-bound, and operates on a single BLOB. A team can compare the in-database path with the existing external-service path on latency, CPU, memory, and cost. If the gain is small, there is no reason to take on a new runtime.
The second step is to test failure modes. Feed the module malformed images, oversized inputs, and adversarial data. See what happens when the module panics, loops, or allocates too much memory. Check whether the database session survives, whether other sessions are affected, and whether the error is reported clearly. A runtime that fails safely is more important than one that is fast.
The third step is to review the supply chain. Build the Wasm module from source, pin the toolchain, verify the binary, and keep the build reproducible. Do not treat a Wasm module as inherently safe just because it is portable. The sandbox limits what a compromised module can do, but it does not tell you whether the module is trustworthy.
The fourth step is to wait for the documentation. Oracle's post is an introduction, not a security guide. The MLE documentation and the LiveLabs examples should fill in the details. If they do not, the feature is not ready for regulated or high-value data, regardless of how convenient the demo looks.
The broader embedded-runtime trend
Oracle is not alone in putting more runtimes inside the database. PostgreSQL has extensions, PL/Python, PL/Perl, and a growing set of procedural languages. SQL Server has CLR integration. Snowflake has Java and Python UDFs. The trend is driven by the same economics: data is large, moving it is expensive, and users want to run custom logic close to the data.
Wasm offers a different trade-off from those older approaches. It is portable, it has a smaller attack surface than a full language runtime, and it can be embedded in many hosts. That makes it attractive for databases that want to support multiple languages without embedding a separate VM for each one. Oracle's MLE already runs JavaScript; adding Wasm lets it reuse libraries from C, Rust, and Go without rewriting them in JavaScript.
The long-term question is whether Wasm becomes the default extension format for databases, or whether it remains a niche for a few workloads. The answer depends on the tooling, the performance, and the security model. Oracle's release is an important data point, but it is early. The feature is available on one deployment option, with limited documentation and no published benchmarks. That is a starting point, not a finished product.
For now, the right way to read the announcement is as a signal of direction. Oracle wants user code to run inside the database, and it wants that code to be portable. Wasm is a sensible choice for that goal. The engineering work that matters is the sandbox, the resource limits, the host interface, and the operational story. Those are the parts that will determine whether teams trust the feature with production data.
Sources
- What's new in MLE 23.26.4: WebAssembly lands in Oracle AI Database — Oracle Developers Blog
- Introduction to Wasm Modules — Oracle MLE documentation