AI Security

Is Qwen Safe? Qwen Chat, the Alibaba Cloud API, Qwen Code and Open Weights Run Locally

Qwen is Alibaba's chatbot, a cloud API with regional endpoints, an open-source coding agent and a family of mostly Apache-2.0 open-weight models, and each carries a different risk. This guide covers where Qwen Chat and Model Studio store and process data, whether your prompts train models, what Qwen Code sends home, how the models answer political questions and how to download weights you can trust.

Is Qwen safe? It depends which Qwen. The open-weight models, run on your own hardware from the official Qwen repositories, send nothing to Alibaba and mostly carry Apache-2.0 licences. Qwen Chat stores data in Singapore and may train on de-identified chats unless you opt out. Alibaba's Model Studio API does not train on business data by default, and its region decides where data lives. Test the models' political answers.

Qwen is four different things. One is Qwen Chat, the assistant on qwen.ai and in Alibaba’s Qwen apps. Another is Alibaba Cloud Model Studio, the API developers call, with separate regions including Singapore, the US, Germany and Beijing. The third is Qwen Code, an open-source terminal coding agent. The fourth is the family of open-weight models the Qwen team publishes on Hugging Face, which anyone can run with no Alibaba service involved.

We checked the Qwen privacy policy and service agreement, Alibaba Cloud’s Model Studio documentation, the Qwen Code repository and documentation, Hugging Face model files, the US National Vulnerability Database and published evaluations on 23 November 2026. If you are approving Qwen for colleagues rather than for yourself, the AI agent security handbook covers the access rules, review steps and audit evidence that sit around any model choice.

Is Qwen safe? Which Qwen you are using

What you useWho runs itWhere data is stored and processedTraining on your contentFit for confidential data?
Qwen Chat on qwen.ai and the Qwen appsNTH Power Global Tech Singapore Pte. Ltd.Singapore, with inference by Alibaba Cloud (Singapore)De-identified content may be used; opt-out by emailNo
Model Studio, Singapore regionAlibaba CloudStored in Singapore; inference on nodes outside mainland ChinaNot without separate consentAfter vendor review
Model Studio, US (Virginia) or Germany (Frankfurt) with a US or EU scopeAlibaba CloudStorage and inference inside the US or the EUNot without separate consentAfter vendor review
Model Studio, China (Beijing) regionAlibaba CloudMainland ChinaNot without separate consentOnly for workloads meant for China
Qwen CodeA local client for the provider you configureDepends on that providerNot by Qwen Code itselfWhen pointed at a local or approved model
Qwen open weights on your serversYour organisationOn your hardware only, with outbound traffic blockedNoYes, after checksum, licence and behaviour checks

The table hides one trap. Model Studio’s Global scope, available in Virginia, Frankfurt, Tokyo and Hong Kong, keeps stored data in the region you chose but draws on a larger inference pool which, Alibaba’s Virginia documentation says, can use any available node, including nodes in mainland China. Choose the US or EU scope when the location of processing matters, not just the location of storage.

Is Qwen AI safe to use? Qwen Chat and the Qwen app

Qwen’s privacy policy, effective from 7 September 2026, covers the Qwen mobile app, the qwen.ai website and the desktop client. Its data controller is NTH POWER GLOBAL TECH SINGAPORE PTE. LTD., a company registered in Singapore. What it says:

  • Where data goes. Personal data is collected, processed and stored in Singapore, according to the policy. Inputs to AI features go to Alibaba Cloud (Singapore) Private Limited, which acts as a processor, runs inference in Singapore and, according to the policy, deletes the input once the response is generated. Alibaba Cloud’s Singapore company also hosts account and other user data.
  • Training. Qwen “may use de-identified user content and feedback data to train and improve” its models, relying on legitimate interests, and says it will not train directly on raw input. The service agreement, effective 10 September 2026, says content may be used to develop products and train models, and lets you opt out by writing to privacy@qwen.com; feedback you give on answers is still used afterwards.
  • Who else sees it. Affiliates may process data for security, research and development, analytics, support and content moderation. Data may be shared with judicial or government authorities when legal requirements demand it. Staff do not review your inputs manually except for security, abuse, debugging or legal compliance.
  • Law and accounts. The agreement is governed by Singapore law. The service is for users aged 18 and over. Sign-in can use Google, Apple or GitHub.
  • Retention. The policy sets periods by data category rather than one number, and some data may be retained after account deletion for legal obligations or disputes; you can delete your account in Settings.

These are clearer terms than many consumer chatbots offer, and they name Singapore, not mainland China, as the place where data is stored and processed. They are still consumer terms: no data processing agreement, training on de-identified content by default, and sharing with affiliates, which the policy allows to include transfers to countries it does not name. Staff pasting client files into Qwen Chat is shadow AI, whatever the storage country.

Is the Qwen API safe? Alibaba Cloud Model Studio

Model Studio is Alibaba Cloud’s platform for Qwen and other models. Its documentation separates two settings that people often merge. The region determines the endpoint and where static data is stored. The deployment scope determines where inference runs.

RegionEndpoint domainData storageInference location
Singapore (International)dashscope-intl.aliyuncs.com or {WorkspaceId}.ap-southeast-1.maas.aliyuncs.comSingaporeNodes worldwide, excluding mainland China
US (Virginia), US scope{WorkspaceId}.us-east-1.maas.aliyuncs.comUS (Virginia)Inside the US
Germany (Frankfurt), EU scope{WorkspaceId}.eu-central-1.maas.aliyuncs.comGermanyInside the EU
China (Beijing)dashscope.aliyuncs.com or {WorkspaceId}.cn-beijing.maas.aliyuncs.comMainland ChinaMainland China for models launched before 13 October 2026; newer models default to a China Elastic Zone that can also use other regions, excluding the US, the EU, Japan and South Korea

The data terms, in Model Studio’s data retention policy last updated on 17 November 2026:

  • Training. Without separate consent, Alibaba says it will not use business data, including inputs, outputs and files, to train, fine-tune or improve any foundation model.
  • Retention. Prompts and responses are kept for no longer than 30 days by default, and content flagged by the automated safety filters is kept for no longer than two years.
  • Zero data retention. Enterprise customers on the International Site can ask their account manager to enable ZDR per workspace in Singapore, Virginia, Frankfurt, Hong Kong and Tokyo. Prompts and responses are then kept only in an encrypted cache for up to 24 hours. ZDR does not cover the console playground, batch inference, knowledge bases, agent and workflow applications, third-party vendor models or metadata, and it does not apply in mainland China.

The practical check is the base URL. dashscope.aliyuncs.com is the Beijing endpoint, and code copied from Chinese-language examples often uses it. Qwen Code’s own Coding Plan instructions show the Beijing address coding.dashscope.aliyuncs.com first, with coding-intl.dashscope.aliyuncs.com for international accounts.

What governments have done about Qwen

We found no national government ban on Qwen or on Alibaba’s AI services as of 23 November 2026, and no published assessment dedicated to a Qwen model from CAISI, the US government’s AI evaluation centre. The actions we could confirm on official pages:

  • Texas, 26 January 2026. Texas put Alibaba on the list of technologies its state employees may not use on state networks or state-issued devices, in the same update that added Moonshot AI and Zhipu. The Texas Department of Information Resources version dated 4 February 2026 lists “Alibaba” and extends to its subsidiaries and affiliates. The list does not mention Qwen by name, and a state-device rule says nothing about weights running on your own servers.
  • US Department of Defense, 10 June 2026. The department’s annual Section 1260H list of “Chinese military companies”, published in the Federal Register, names Alibaba Group Holding Limited as a military-civil fusion contributor. The listing is not a sanction and does not mention Qwen. Alibaba has sued in a US federal court to have the designation removed, and it was still on the list after the department’s November 2026 removal notice, which delisted a different company.

Is Qwen safe for US enterprise use?

There is no general US ban, so the question is your own risk assessment and your sector’s rules. Public-sector bodies, defence suppliers and regulated firms should check whether lists like the Texas one or the Pentagon’s 1260H list, or their contracts, reach Alibaba Cloud services. For the hosted API, the Virginia region with a US scope keeps both storage and inference in the US. For the open weights, the provider is you, and the licence for most models is Apache-2.0.

Does Qwen censor political topics?

Yes, according to the independent tests published so far, and the behaviour lives in the weights, so it travels with them onto your servers.

  • Vals AI, 12 October 2026. In a study of how Chinese and US models answer politically sensitive questions about China, Vals found that Chinese models endorsed official Chinese Communist Party narratives much more often when asked in Chinese than in English. On its matched question set, Qwen3.6 35B endorsed the official PRC position in 84.6% of answers and Qwen3.8 27B in 45.9%. In a translation test, Qwen3.8 Max rendered Taiwan as “中国台湾” (“Taiwan, China”) from English input.
  • Research on suppressed knowledge, March 2026. A paper using censored Chinese open-weight models as a testbed reported that Qwen3 models “frequently produce falsehoods” on subjects such as Falun Gong or the Tiananmen protests, while sometimes answering correctly, which the authors read as knowledge the models were trained to suppress.

The same study measured third-party fine-tunes of Qwen3.6 35B and an “abliterated” Qwen3.8 27B, with refusal behaviour removed, and found their endorsement rates far lower, though some answers still echoed the original model. That fixes one problem by creating another: removing refusals also removes safety behaviour you may want, and these builds come from third parties. For most enterprise uses, such as summarising contracts or writing code, the political lean rarely surfaces. For anything that touches China, Taiwan, Hong Kong, Xinjiang or Tibet, compare answers in the languages your users write in before relying on them.

Is Qwen Code safe?

Qwen Code is Alibaba’s open-source terminal agent, Apache-2.0-licensed in the QwenLM/qwen-code repository, with about 30,900 GitHub stars when we checked. The newest stable release when we checked was v0.28.4, from 22 November 2026. It reads and edits files and runs shell commands, so it works with your permissions.

Where your code goes. Qwen Code is a client. With a Qwen account and a Plus or Pro subscription, Qwen Chat’s privacy policy applies; with Alibaba Cloud’s Coding Plan, Alibaba Cloud’s terms apply; with your own API key, your provider’s terms apply. The free Qwen OAuth allowance ended on 15 April 2026. The project’s privacy notice says Qwen Code itself does not use prompts, code or responses for training. With a local model, nothing leaves the machine except what the next point covers. Our walkthrough of Qwen Code with a local model gives the settings for Ollama, LM Studio, llama.cpp and vLLM.

What it sends by default. Anonymous usage statistics, such as commands run and performance metrics, are enabled by default for every authentication method and go to an Alibaba Cloud real-user-monitoring endpoint. Set privacy.usageStatisticsEnabled to false in settings.json, or QWEN_USAGE_STATISTICS_ENABLED=false, which takes precedence.

Approvals. The default mode is Auto, in which an AI classifier approves actions it judges safe and blocks risky ones. Ask Permissions, configured as tools.approvalMode: "default", asks before edits and commands; Plan is read-only; YOLO approves everything. On a work machine, start with Ask Permissions and use the built-in sandbox for anything longer.

The daemon. qwen daemon exposes Qwen Code’s API on the loopback interface without bearer authentication by default, so any local process can use it, including to run code. On shared hosts, set QWEN_SERVER_TOKEN and start it with --require-auth.

Installation. The standalone installer is fetched from an Alibaba Cloud storage bucket in the Hangzhou region. If you would rather not pipe a remote script into a shell, the npm package @qwen-code/qwen-code and Homebrew are alternatives. Ollama’s ollama launch qwen, added in v0.30.2 in June 2026, asks before installing it and connects it to your Ollama server. We found no CVE naming Qwen Code in the NVD on 23 November 2026, and the project accepts private reports through GitHub’s vulnerability reporting.

Qwen-Agent vulnerabilities

Qwen-Agent, the team’s separate Python agent framework, does have published flaws. CVE-2026-82268, a server-side request forgery, and CVE-2026-82275, a path traversal that reads arbitrary files, both affect versions through 0.0.34 via its unauthenticated Gradio interface. They were published on 28 August 2026, and 0.0.34, from 16 February 2026, was still the latest release on PyPI on 23 November. Do not expose the Gradio demo to a network.

Is Qwen safe to use locally?

For the data, yes. A Qwen checkpoint on a server with no outbound route has no channel to Alibaba, and nothing in the licence or files calls home. The questions that remain are which files you run, what the licence says and how the model behaves.

The files. Current official repositories are plain. Qwen3.8-27B holds 18 safetensors files totalling 55.6 GB, JSON configuration, a tokenizer and a Jinja chat template, and Qwen3.6-35B-A3B is similar at 71.9 GB; neither contains Python files, so there is no reason to enable trust_remote_code. Safetensors stores tensors without executable code, unlike the pickle-based .bin and .pt formats. Our hardware guide to the Qwen 3.8 checkpoints covers which build fits which GPU.

The licence. Most of the family is Apache-2.0, including all Qwen3.5 sizes, Qwen3.6-27B, Qwen3.6-35B-A3B and Qwen3.8-27B. The exceptions are newer and larger. Qwen3.8-Flash-Next is under the Qwen Community License 1.0: a group that sells models as a service, or an AI coding or office assistant, needs a separate licence from Qwen before commercial use, at any revenue level. Qwen3.8-2.4T-A95B uses the Qwen3.8-Max License, which sets that threshold at US$50 million of group revenue. Both exempt internal use that is not exposed to third parties. Our guide to choosing a Qwen model by size tier compares them, and none of this is legal advice.

Is Qwen safe to download?

The Qwen organisation on Hugging Face, huggingface.co/Qwen, is the official source, with more than 460 models. Popularity is not provenance, though. On 23 November 2026, a search for Qwen3.8-27B ranked by downloads over the previous 30 days put Unsloth’s GGUF conversion first at about 7.8 million, ahead of the official repository, and showed abliterated and “uncensored” re-uploads in the top ten. Qwen has not published official GGUF files for Qwen3.8; its most recent official GGUF repository is for Qwen3-Coder-Next, from February 2026. Ollama’s qwen3.8 tags are local builds packaged by Ollama, not by the Qwen team.

None of that makes community builds malicious. It makes them different artefacts: other quantisation, sometimes changed behaviour, sometimes a different licence claim. Take weights from Qwen where you can, pin the revision you reviewed, check every file against the Hub’s checksums, and give each conversion its own review. Our model artefact intake checklist sets out the steps.

How to use Qwen safely at work

  1. Keep work data out of Qwen Chat unless your organisation has approved it, and opt staff accounts out of training by emailing privacy@qwen.com.
  2. For the API, choose the region deliberately. Use Virginia or Frankfurt with a US or EU scope where processing location matters, avoid the Beijing endpoint for data that must stay out of China, and ask about ZDR for sensitive workloads.
  3. Search your code for dashscope.aliyuncs.com and confirm every call goes to the region you intended.
  4. Configure Qwen Code before rollout. Disable usage statistics, set Ask Permissions as the default, require a token for the daemon, and point it at a local model or an approved endpoint.
  5. Download from Qwen and verify. Pin revisions, check checksums, load safetensors only, and treat GGUF, abliterated and fine-tuned re-uploads as separate products.
  6. Check the licence per checkpoint. Apache-2.0 for most, but Flash-Next and the 2.4T model carry conditions if you sell AI services.
  7. Test behaviour on your topics. Run prompt-injection, misuse and politically sensitive prompts in each language your users write, on the exact build you will serve.

How VDF AI fits

The safest Qwen for company data is usually the one you host, and that is where VDF AI fits. It does not run Qwen Chat or any Alibaba Cloud service. VDF AI Chat is a private assistant that serves open-weight families, Qwen included, from your own infrastructure, and each agent can be assigned its own model, so a team can keep confidential work on one model and public research on another.

Your engineers serve the checkpoint through Ollama or another custom on-premises deployment, and VDF AI Router registers it as a model source alongside any cloud models your policy approves. Requests are checked against organisation-wide allow and deny lists before any model is called, and an air-gap setting removes external APIs from consideration entirely. Access is controlled by role, usage is written to audit logs on every plan, and on-premises sign-in uses Microsoft Entra ID directly.

Sources

Policies, documentation, repositories, vulnerability records and studies, as retrieved on 23 November 2026.


Choosing between Qwen Chat and a Qwen model you host? See how VDF AI Chat puts open-weight models behind your own access controls, or talk to our team.

Frequently asked questions

Is Qwen AI safe to use?

For general questions, yes, if you accept its terms. Qwen Chat is run by a Singapore company, keeps data in Singapore and may train its models on de-identified chats and on feedback; you can opt out of training by emailing privacy@qwen.com, though ratings you give still count. For confidential or personal work data, treat Qwen Chat like any consumer chatbot and keep it out unless your organisation has approved it. Alibaba's Model Studio API has stronger default terms for business use.

Is Qwen safe to use locally?

Yes, for your data. An open-weight Qwen checkpoint running on your own hardware sends nothing to Alibaba when the machine has no outbound connection, and the current official repositories contain only safetensors weights, configuration and a chat template, with no Python code to execute. What local use does not change is the model's training: independent tests published in 2026 found Qwen models often follow official Chinese positions on politically sensitive topics, so test it on the subjects your users raise.

Is Qwen Code safe?

Qwen Code is an Apache-2.0 open-source agent from Alibaba's Qwen team, and we found no vulnerability records naming it in the US National Vulnerability Database on 23 November 2026. Its risks are configuration choices. Anonymous usage statistics go to an Alibaba Cloud endpoint by default, the default Auto mode lets an AI classifier approve actions, and its optional daemon accepts local requests without a token unless you require one. Turn statistics off, choose Ask Permissions mode and use a model endpoint you trust.

Is Qwen safe to download?

The official files are, if you take them from the Qwen organisation on Hugging Face and verify them. Current Qwen3.6 and Qwen3.8 repositories hold safetensors weights, which store tensors without executable code, plus JSON configuration and a Jinja chat template. The risk sits in re-uploads: for Qwen3.8 27B, community GGUF conversions, uncensored and abliterated variants outnumber the official repository in search results. Each is a separate build with its own behaviour and licence claims, so review it before use.

Does Qwen send data to China?

For Qwen Chat, the privacy policy says data is collected, processed and stored in Singapore, with Alibaba Cloud's Singapore company running inference. It also allows sharing with affiliates, including in countries it does not name. On Model Studio it depends on the region and scope you pick. Beijing stores data in mainland China, Singapore keeps it in Singapore with inference outside mainland China, and Virginia and Frankfurt can keep processing inside the US or the EU. Check which endpoint your code calls.

Is Qwen safe for US enterprise use?

The open weights can be, run on your own servers under Apache-2.0 after your own testing. The hosted services need a vendor review like any other: Model Studio's US (Virginia) region can keep storage and inference in the US, and its terms say business data is not used for training without separate consent. Some public bodies restrict Alibaba products: Texas added Alibaba to its prohibited technologies list for state employees and devices in January 2026, and the Department of Defense listed Alibaba as a Chinese military company in June 2026. Check your sector's rules.

Filed under
QwenAlibaba CloudAI securityopen-weight modelscoding agentsmodel provenanceAI governance
AI Governance

Is your AI governance audit-ready?

Get a readiness review of your AI controls — policy, oversight, audit trails, and EU AI Act evidence — mapped against what production actually requires.

Keep reading