Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Collabora CODE is the document-editing service that gives Nextcloud browser-based, real-time editing. Nextcloud stores and authorizes the file, while Collabora renders the document and applies edits through the WOPI protocol. The arrangement is secure only when the WOPI connection, access tokens, reverse proxies, transport encryption, and software versions are configured and patched correctly.

For a personal installation or a small team, Nextcloud’s built-in CODE server is the simplest route. Larger or multi-user deployments generally use a separate Collabora Online server, often behind a reverse proxy, because it offers better isolation and scalability. The security distinction between those choices matters: a vulnerability in the built-in app can involve Nextcloud’s proxy layer, while a standalone dedicated Collabora server has a different exposure.

What Collabora CODE does inside Nextcloud

Nextcloud Office is not a word processor embedded entirely in the Nextcloud PHP application. It connects Nextcloud to a Collabora Online service running alongside the Nextcloud web-server stack. CODE means Collabora Online Development Edition, the freely available edition commonly used for self-hosted installations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Nextcloud remains the file host and permission authority. It knows which user may open a document, where that document is stored, and whether downloads are allowed. Collabora is the WOPI client: it requests document content and sends document changes through WOPI endpoints exposed by Nextcloud. The browser displays Collabora’s editing interface, but the authoritative file remains in Nextcloud storage.

#1 Best Overall
Sale
UGREEN NAS DXP2800 2-Bay for Advanced Home Users, Remote Workers & Creators | Home Media & Data Center, Docker & VM, Plex, Fast File Transfer, Intel N100, 8GB DDR5, 2.5GbE, 2x M.2 NVMe, 4K HDMI(Diskless)
  • 【Advanced Home Data & Media Hub】For advanced home users who need phone backup, file storage, and centralized data management. Centralize family photos, 4K videos, movies, computer backups, and personal files in one place while running multiple apps for home entertainment and everyday data management. Suitable for households with growing digital libraries and multiple NAS use cases.
  • 【Built for Creators, Media Servers & Advanced Apps】Powered by the Intel N100 Quad-Core CPU, 8GB DDR5 RAM, 2.5GbE networking, and dual M.2 NVMe slots, DXP2800 handles large files and heavier workloads with ease. Run Docker, virtual machines, and media server applications compatible with Plex—ideal for content creators, tech enthusiasts, and advanced home users managing 4K videos, RAW photos, personal media libraries, and multiple NAS apps.
  • 【Up to 80TB for Growing Digital Libraries】 Supports up to 80TB of storage using two HDD bays and two M.2 NVMe SSD slots for family photos, movies, RAW photos, 4K videos, work files, and device backups. AI photo management supports recognition of people, objects, scenes, and locations, album organization, and duplicate photo detection. HDDs and SSDs are not included.
  • 【AI-powered Home Surveillance】Turn DXP2800 into a centralized home surveillance hub by connecting compatible network cameras and storing recordings locally on your NAS. AI-powered features include Face Recognition, People Detection, and Pet Detection, helping advanced home users review important events more efficiently while managing home surveillance and personal data in one place.
  • 【One data Center Across Your Devices】Keep files from desktops, laptops, phones, tablets, and other devices together instead of scattered across cloud accounts and external drives. Access, back up, organize, and share data across Windows, macOS, Android, iOS, web browsers, and compatible smart TVs—ideal for creators and advanced home users working across multiple devices.

The main components

  • Nextcloud: authenticates the user, checks file permissions, stores the document, and exposes WOPI operations.
  • Collabora CODE: opens the document, converts it into an editable browser session, processes changes, and requests save or lock operations from Nextcloud.
  • The browser: loads the editing session and sends user actions to Collabora over the established web connection.
  • The reverse proxy, when present: routes browser and WOPI traffic to the correct service and terminates or forwards HTTPS.

How a document-editing session works

  1. The user opens a supported file in Nextcloud. Nextcloud checks the user’s account and the file’s permissions before starting an editing session.
  2. Nextcloud points the browser at Collabora. The configured Collabora server URL determines where the editing interface is loaded.
  3. Nextcloud supplies WOPI information. This includes the file endpoint and an access token that Collabora must present when asking Nextcloud to read, lock, update, or otherwise operate on the file.
  4. Collabora requests the file from Nextcloud. Collabora uses the WOPI client relationship to fetch the document and the permissions associated with the session.
  5. Edits are processed by Collabora. The browser communicates with Collabora while users edit. Collabora periodically sends operations back to Nextcloud through WOPI.
  6. Nextcloud remains the storage authority. Saves, locks, and permission checks are performed against the Nextcloud file service rather than an independent copy controlled by the browser.
  7. The session ends. Collabora releases its editing state and Nextcloud retains the resulting document according to its normal versioning and storage configuration.

Access-token behavior

The token passed from Nextcloud to Collabora is central to authorization. Collabora uses it for subsequent WOPI calls instead of asking the user to authenticate separately to Nextcloud for every operation. A token that is too broad, accepted by the wrong endpoint, or reusable with another file identifier can turn a normal editing connection into a data-disclosure path.

Third-party token generation is disabled by default. If an integration needs to generate tokens outside the normal Nextcloud flow, an application identifier and secret must be configured. That setting should be treated as a privileged integration credential, not as a convenience option to enable without a defined use case.

Built-in CODE or a dedicated Collabora server?

Nextcloud supports several deployment models: the built-in CODE server, Nextcloud All-in-One, Linux packages, and Docker-based or otherwise standalone Collabora installations. The right choice depends on how many people edit concurrently, how much isolation is required, and who will maintain the service.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Decision factor Built-in CODE app Dedicated Collabora deployment
Isolation Runs as part of the Nextcloud application environment, so a CODE-specific problem can involve Nextcloud’s integration and proxy layer. Separate service boundary from the Nextcloud application; standalone dedicated Collabora was unaffected by CVE-2025-66208.
Scalability Intended for personal use or small teams; slower and missing advanced scalability features. Better suited to multi-user production and capacity planning.
Reverse-proxy complexity May use Nextcloud’s built-in proxy.php path and an intermediate proxy. Commonly deployed behind a reverse proxy that you operate and harden.
Patching responsibility Patch the Nextcloud Office/CODE app and the surrounding Nextcloud stack. Patch Collabora independently as well as Nextcloud’s Office integration.
Network exposure WOPI and editor traffic share the Nextcloud deployment’s exposure. Allows a separately addressable Collabora service and more explicit firewall boundaries.
WOPI allow-list control Requires matching restrictions in Nextcloud and the embedded service. Can restrict requests to the dedicated Collabora server’s known addresses on both sides.
Best fit Personal clouds, testing, and small teams where convenience outweighs throughput. Organizations needing stronger separation, predictable performance, or many simultaneous editors.

When the built-in server is reasonable

The built-in server reduces the number of services to install and makes a small Nextcloud instance easier to operate. It is a practical choice when only a few people edit documents and slower performance is acceptable. It should not be mistaken for the scalable architecture: Nextcloud explicitly describes it as intended for personal use or small teams and notes that advanced scalability features are absent.

Rank #2
Sale
UGREEN NAS DH2300 2-Bay for Beginners & Personal Users, Phone Backup | AI Album, Private Cloud/Remote Access, File Sharing, Multi-Device Backup, Home Entertainment, 4GB RAM on Board (Diskless)
  • Entry-level NAS Personal Storage:UGREEN NAS DH2300 is your first and best NAS made easy. It is designed for beginners who want a simple, private way to store videos, photos and personal files, which is intuitive for users moving from cloud storage or external drives and move away from scattered date across devices. This entry-level NAS 2-bay perfect for personal entertainment, photo storage, and easy data backup (doesn't support Docker or virtual machines).
  • Set Your Devices Free, Expand Your Digital World: This unified storage hub supports massive capacity up to 64TB.*Storage drives not included. Stop Deleting, Start Storing. You can store 22 million 3MB images, or 2 million 30MB songs, or 43K 1.5GB movies or 67 million 1MB documents! UGREEN NAS is a better way to free up storage across all your devices such as phones, computers, tablets and also does automatic backups across devices regardless of the operating system—Window, iOS, Android or macOS.
  • The Smarter Long-term Way to Store: Unlike cloud storage with recurring monthly fees, a UGREEN NAS enclosure requires only a one-time purchase for long-term use. For example, you only need to pay $459.98 for a NAS, while for cloud storage, you need to pay $719.88 per year, $2,159.64 for 3 years, $3,599.40 for 5 years. You will save $6,738.82 over 10 years with UGREEN NAS! *NAS cost based on DH2300 + 12TB HDD; cloud cost based on 12TB plan (e.g. $59.99/month).
  • Blazing Speed, Minimal Power: Equipped with a high-performance processor, 1GbE port, and 4GB RAM on Board, this NAS handles multiple tasks with ease. File transfers reach up to 125MB/s—a 1GB file takes only 8 seconds. Don't let slow clouds hold you back; they often need over 100 seconds for the same task. The difference is clear.
  • Let AI Better Organize Your Memories: UGREEN NAS uses AI to tag faces, locations, texts, and objects—so you can effortlessly find any photo by searching for who or what's in it in seconds. It also automatically finds and deletes similar or duplicate photo, backs up live photos and allows you to share them with your friends or family with just one tap. Everything stays effortlessly organized, powered by intelligent tagging and recognition.

When to separate Collabora

A dedicated server is preferable when editing load is growing, when the Nextcloud host should have a narrower trust boundary, or when the organization wants Collabora patching and capacity management to be independent. A separate service does not remove the need for WOPI authorization; it makes the network and process boundaries easier to define and monitor.

WOPI authorization is the primary security boundary

Restrict which hosts may make WOPI requests

Nextcloud warns that document confidentiality depends on preventing arbitrary systems from using its WOPI endpoints. Configure an IP allow list containing only the Collabora servers that are expected to request files. Configure a matching allow list in Collabora so that each side accepts WOPI traffic only from the other side’s known addresses.

Keep the list narrow. Do not use a broad internal network range merely because it is convenient, and revisit the entries whenever a Collabora node, reverse-proxy address, or network segment changes. A failed health check after tightening the list usually indicates that the address seen by one side is the proxy’s address rather than the Collabora host’s address; correct the network path and list the actual source address rather than weakening the rule.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Limit what a WOPI token can do

Allow tokens to authorize only the file and operations required for the active session. Do not expose a token-generation interface to untrusted applications. If third-party token generation is necessary, protect the application identifier and secret as credentials, restrict which application can use them, and remove the integration when it is no longer needed.

Rank #3
Synology DS225+ Private Cloud Media Server - Stream, Back Up Photos & Share Files, Intel CPU for Hardware Transcoding (2-Bay Diskless NAS)
  • Your Personal Streaming Server - Build your own Netflix-style media library and stream 4K movies, shows and photos to any device without monthly fees
  • Create Your Own Cloud - Store your entire photo, video and music collection; access from anywhere with fast 282 MB/s transfer speeds
  • Creator-Grade Backup Solution - Protect your irreplaceable content with automated backups to cloud services, external drives and remote NAS
  • Multi-Layered Data Protection - Combine RAID redundancy, automated backups and snapshot technology to prevent data loss from any cause
  • Smart Home Surveillance - Support up to 30 IP cameras with AI detection, instant alerts and secure remote monitoring

Control downloads explicitly

Nextcloud’s guidance emphasizes restricting document downloads. Editing access does not have to imply unrestricted downloading. Review the file-sharing and WOPI policies together so that a user receives only the operations intended for that document and role.

Reverse-proxy risk: CVE-2025-66208

CVE-2025-66208 affected versions of the richdocumentscode app before 25.04.702. The advisory was published on 3 December 2025. The issue involved the built-in CODE app’s proxy.php path and an intermediate reverse proxy. In particular, a reverse proxy that insecurely trusted the X-Forwarded-Host header could create an unsafe routing or host-validation condition.

The advisory described the typical default setup as unaffected and stated that a standalone dedicated Collabora Online server was unaffected. That qualification does not make old embedded versions safe to leave unpatched: update the built-in app to 25.04.702 or a later fixed release, and review every proxy in front of it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Proxy review checklist

  • Do not accept X-Forwarded-Host from arbitrary clients. Strip it at the public edge and add a trusted value only from a controlled proxy hop.
  • Ensure the proxy sends requests only to the intended Nextcloud or Collabora upstream.
  • Check that external host names cannot be selected by user-supplied headers.
  • Apply the vendor’s fixed richdocumentscode version or later before reopening public access.
  • Test both normal editing and rejected requests after the change; a proxy that blocks legitimate WOPI calls can look like a Collabora failure even when authorization is working.

Historical cross-user disclosure: CVE-2023-25150

CVE-2023-25150 exposed a different failure mode: a user with Collabora access could manipulate token reuse with another user’s file ID and obtain a copy without proper permission validation. Nextcloud’s advisory described the impact plainly: any user with access to Collabora could obtain the content of other users’ files. The vulnerability carried a CVSS v3 base score of 5.8.

Rank #4
Sale
UGREEN NAS DH4300 Plus 4-Bay for Beginners, Home Users & Remote Workers | Photo & Video Backup, AI Photo Album, File Hub, Private Cloud & Secure Home Surveillance, 8GB LPDDR4X, 4K HDMI (Diskless)
  • Entry-level NAS Home Storage: The UGREEN NAS DH4300 Plus is an entry-level 4-bay NAS that's ideal for home media and vast private storage you can access from anywhere and also supports Docker but not virtual machines. You can record, store, share happy moment with your families and friends, which is intuitive for users moving from cloud storage, or external drives to create your own private cloud, access files from any device.
  • Smart Photo Backup & AI Album: Automatically back up photos and videos from your phone in real time and keep growing family memories organized with AI-powered photo albums. Semantic search, custom learning, and recognition of people, objects, pets, and similar photos help you quickly find the moments you want. Duplicate photo removal also helps keep your library organized—ideal for families and users with large photo collections.
  • User-Friendly App & Easy Setup: Connect quickly via NFC, set up simply and share files fast on Windows, macOS, Android, iOS, web browsers, and smart TVs. You can access data remotely from any of your mixed devices. What's more, UGREEN NAS enclosure comes with beginner-friendly user manual and video instructions to ensure you can easily take full advantage of its features.
  • More Cost-effective Storage Solution: Unlike cloud storage with recurring monthly fees, A UGREEN NAS enclosure requires only a one-time purchase for long-term use. For example, you only need to pay $629.99 for a NAS, while for cloud storage, you need to pay $719.88 per year, $1,439.76 for 2 years, $2,159.64 for 3 years, $7,198.80 for 10 years. You will save $6,568.81 over 10 years with UGREEN NAS! *NAS cost based on DH4300 Plus + 12TB HDD; cloud cost based on 12TB plan (e.g. $59.99/month).
  • Your Data, You Control:No third-party clouds, no hidden access, UGREEN NAS provides a more secure and private data storage solution. It stores data locally on your private hard drives and does automatic backups. Thus, you can keep full control over it. The advanced encryption is TRUSTe certified in the United States and is awarded the first (and only) ETSI EN 303 645 certification mark for NAS products by TÜV SÜD Group.

Nextcloud listed these fixed Office app versions by Nextcloud release:

Nextcloud release Fixed Office app version
Nextcloud 25 7.0.2
Nextcloud 24 6.3.2
Nextcloud 23 5.0.10
Nextcloud 21–22 4.2.9
Nextcloud 15–20 3.8.7

If an installation still runs an Office app older than the applicable fixed version, update it before treating WOPI restrictions as sufficient protection. After patching, review access logs and shared-file permissions for unusual cross-user access, especially on systems that were exposed while an affected version was installed.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Transport and host hardening

Use HTTPS for every externally reachable hop

Nextcloud recommends HTTPS because unencrypted HTTP can expose document content, session data, and passwords to interception. Use HTTPS from the browser to the public endpoint and protect internal proxy-to-service links according to your network threat model. A private network is not a substitute for encryption when traffic crosses hosts, virtualization boundaries, or administrative zones.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep the data directory outside the web root

Place Nextcloud’s data directory outside the directory served directly by the web server. This prevents a web-server misconfiguration from turning stored documents into directly retrievable files. Apply the same principle to temporary exports, logs containing sensitive paths, and backup locations.

Best Value
Synology 2-Bay DiskStation DS223j (Diskless)
  • Secure private cloud - Enjoy 100% data ownership and multi-platform access from anywhere
  • Easy sharing and syncing - Safely access and share files and media from anywhere, and keep clients, colleagues and collaborators on the same page
  • Automated Backup Protection - Set-and-forget backups for Macs, PCs and mobile devices to multiple destinations including cloud and external drives
  • Home Security System - Record and monitor your property 24/7 with support for multiple IP cameras and remote viewing
  • 2-Year Warranty - Reliable hardware backed by Synology's expert customer support team and ongoing software updates

Review previews in high-security environments

Nextcloud notes that native preview libraries can expose attack vectors. In a high-security deployment, consider disabling previews if the convenience is not worth the additional parsing surface. This is a broader Nextcloud hardening choice, not a defect unique to Collabora, but it affects the same documents and users.

Threat-model boundaries you should document

Nextcloud’s security assumptions treat administrators as ultimately trusted and local mounted external storage as trusted. They also accept SSRF-like outbound requests as expected behavior because many Nextcloud features intentionally connect to other hosts. Those assumptions should appear in the deployment threat model instead of being described as Collabora vulnerabilities.

An administrator who controls the Nextcloud host, Collabora host, proxy, or storage can generally change authorization, inspect files, or redirect traffic. Likewise, a mounted storage system that is already trusted by the operating environment is outside the protection WOPI provides. The practical goal is to prevent untrusted users and unapproved hosts from crossing those boundaries, not to claim that WOPI can protect against a fully compromised administrator account.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Deployment hardening sequence

  1. Choose the architecture. Use built-in CODE only when the personal or small-team workload and reduced scalability are acceptable; choose a dedicated service for production scale or stronger separation.
  2. Set the Collabora server URL in Nextcloud. Verify that the URL resolves through the intended HTTPS endpoint and that the browser can load the editor without bypassing the proxy.
  3. Define WOPI source restrictions. Add only the Collabora server or trusted proxy addresses to Nextcloud’s allow list, then configure the reciprocal restriction in Collabora.
  4. Review token settings. Leave third-party token generation disabled unless a documented integration requires it. Protect any application identifier and secret that must be enabled.
  5. Harden proxy headers. Strip untrusted forwarding headers, set trusted host values at the controlled proxy, and ensure user input cannot choose an upstream host.
  6. Encrypt connections. Use HTTPS for browser access and for service links that cross a host or trust boundary.
  7. Apply security updates. For embedded CODE, ensure richdocumentscode is at least 25.04.702 for CVE-2025-66208, and ensure the Office app meets the CVE-2023-25150 fixed version for the installed Nextcloud release.
  8. Test denial paths. Confirm that an unlisted source address, an invalid token, an unauthorized file ID, and an unexpected host header are rejected while a normal edit still works.
  9. Monitor and document. Record Collabora node addresses, proxy hops, token integrations, patch dates, and storage trust assumptions so that future changes do not silently widen access.

Common symptoms and what they indicate

  • Editor loads but cannot save: WOPI requests may be reaching Nextcloud from an address missing from the allow list, or the token may not authorize write operations.
  • Editor fails only behind a proxy: inspect host and forwarding headers, upstream routing, and whether the proxy is rewriting the Collabora URL.
  • Users see files they should not see: stop access, verify the Office app is patched against CVE-2023-25150, invalidate active sessions or tokens where possible, and audit permissions and logs.
  • Built-in CODE is slow under load: that is consistent with its intended personal or small-team role and lack of advanced scalability features; move the editing service to a dedicated deployment rather than weakening security controls.
  • WOPI requests are rejected after a firewall change: identify the source address actually observed by Nextcloud and Collabora, then update both allow lists with the narrowest correct entries.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.