OWASP Top 10 Client-Side Security Risks
An unranked 2022 candidate list for browser-side risks such as third-party scripts and JavaScript drift. No full draft followed, so use it as a checklist, not a standard.
Items at a glance
What this list is
This is a candidate list, not a finished Top 10. The OWASP Top 10 Client-Side Security Risks Project is an OWASP incubator project. It published ten candidate risks for code that runs in the user’s browser: JavaScript, WebAssembly, and the third-party scripts and libraries a page loads. The project page says the list may change after comments, and it promised a complete draft “later in 2022”. The repository contains no such draft, no ranking, no release date and no licence file. Its info page says only that the document will be licensed under CC BY-SA 4.0. Treat the numbers 1–10 as an order of listing, not a rank.
The boundary with the OWASP Top 10:2025 is the browser. The main Top 10 is about the server. This list is about what happens after the page has loaded, often in code that the site owner did not write and does not host. Three items (1, 4 and 8) are framed as client-side versions of 2021 Top 10 entries. For a SaaS product, the list is most useful for the parts of your app that nobody reviews: analytics tags, chat widgets, payment iframes, A/B testing scripts and embedded AI assistants.
How it was made
The source does not say. The page says only that the project team “pulled together” the candidates and asks for feedback through a mailing list. No data set, survey or scoring is described.
The items
1 Broken Client-side Access Control
What it is. The page does not limit which scripts can read or change which data and parts of the DOM. Any script on the page can reach form fields, tokens and personal data, and can rewrite the page. The source frames it as the client-side form of A01:2021.
How it shows up. A marketing tag loaded on the checkout page reads the card number field as the user types. A compromised support widget rewrites the “Pay” button to post to another origin. Nothing in the page stopped either script, because every script on a page has the same rights.
What to do. Load third-party code in sandboxed, cross-origin iframes, not straight into the main page. Keep sensitive pages such as login, payment and account settings free of third-party scripts. Use a strict Content Security Policy. Test by listing every script that runs on each sensitive page and asking whether it needs to be there.
Related: A01:2025 Broken Access Control, 5 Lack of Third-party Origin Control, DSGAI16 Endpoint & Browser Assistant Overreach.
2 DOM-based XSS
What it is. Cross-site scripting that happens wholly in the browser. Page script takes attacker-controlled data, from the URL fragment, postMessage, local storage or an API response, and writes it into the DOM as HTML or code.
How it shows up. A single-page app reads location.hash and inserts it with innerHTML to show a “welcome back” banner. Server-side scanners never see the payload, because the fragment is not sent to the server. In AI features, the same bug appears when a chat widget renders model output as raw HTML or Markdown. A prompt-injected answer then carries a script or an image tag that sends data out.
What to do. Avoid HTML sinks. Use textContent and framework bindings that escape by default. Where HTML is needed, sanitise it with a maintained sanitiser. Enable Trusted Types where the browser supports them, and set a CSP without unsafe-inline. Test with DOM-aware DAST tools and by sending payloads through every client-side source, including model output.
Related: A05:2025 Injection, LLM10:2026 Improper Output Handling, CWE-79 Cross-site Scripting.
3 Sensitive Data Leakage
What it is. Despite the broad name, the source defines this narrowly. The site cannot detect or stop trackers and pixels that send user data to third parties, so it cannot show that it complies with privacy laws.
How it shows up. A pixel added through a tag manager by the marketing team starts sending page URLs from the logged-in app to an ad network. Those URLs contain search terms, email addresses or record IDs. Nobody in engineering approved it, and nobody notices until a customer’s privacy team asks.
What to do. Keep an inventory of every tag and the data each one receives. Keep trackers off authenticated pages, or allow them only with a reviewed data list. Strip personal data from URLs. Use CSP connect-src and img-src allow-lists so that new destinations fail loudly. Test by recording the network traffic of a logged-in session and listing every third-party host that receives data.
Related: M6 Inadequate Privacy Controls, LLM02:2026 Sensitive Information Disclosure, DSGAI14 Excessive Telemetry & Monitoring Leakage.
4 Vulnerable and Outdated Components
What it is. The page loads JavaScript libraries that are out of date or have known flaws, and no one tracks them. The source frames it as the client-side form of A06:2021.
How it shows up. An old copy of a UI library sits in a vendor/ folder outside the package manager, so dependency scans never flag it. A script tag still points to an old CDN version of a library from years ago.
What to do. Bring every front-end library under the package manager and the SBOM. Scan front-end bundles as you scan server code. Retire.js, which the main Top 10 also cites, is one open option. Remove unused libraries. Test by scanning the built bundle and the live page, not only the lock file.
Related: A03:2025 Software Supply Chain Failures, OSS-RISK-5 Outdated Software.
5 Lack of Third-party Origin Control
What it is. Third-party code runs in your site’s origin, so it gets the same access as your own code. The site does not use origin-based controls to limit what that code can reach. The source counts this as a supply chain risk.
How it shows up. A chat or analytics vendor’s script is loaded with a plain <script src>. When the vendor is breached, its next release runs in your origin and can read session data, call your APIs as the user, and change the page.
What to do. Self-host third-party scripts where you can, pinned with subresource integrity (SRI). If a vendor must update in place, isolate it in a cross-origin iframe and talk to it through postMessage, checking the sender’s origin. Restrict script-src to named hosts. Test by reviewing which external origins can run script, and by checking every postMessage handler for origin checks.
Related: A08:2025 Software or Data Integrity Failures, CICD-SEC-8 Ungoverned Usage of 3rd Party Services, API10:2023 Unsafe Consumption of APIs.
6 JavaScript Drift
What it is. The scripts on your pages change, in code or in behaviour, and you cannot tell. This matters most for third-party scripts, which can change at any time without a deploy on your side.
How it shows up. A tag that loaded the same file for a year starts loading a new file that collects form input, but only for some visitors or on some pages. Your CI and code review never see it, because it never passes through your repository.
What to do. Pin versions and hashes with SRI where you can, so that a changed file fails to load. Monitor the scripts real users actually receive, and alert on new scripts, new hashes and new network destinations. CSP violation reports are a free signal. Test by comparing the script inventory of production pages against an approved list on a schedule.
Related: A03:2025 Software Supply Chain Failures, OSS-RISK-9 Unapproved Change, 8 Client-side Security Logging and Monitoring Failures.
7 Sensitive Data Stored Client-Side
What it is. Passwords, cryptographic secrets, API tokens or personal data kept in browser storage that any script can read. This means localStorage, caches, or long-lived JavaScript variables such as a data layer.
How it shows up. A SaaS front end stores the access token and refresh token in localStorage, so one XSS bug or bad third-party script steals the session. A “bring your own key” AI feature saves the customer’s model-provider API key in the browser, or a build ships a vendor API key inside the JavaScript bundle.
What to do. Keep session tokens in HttpOnly, Secure, SameSite cookies, or keep them in memory with short lifetimes. Never ship provider API keys to the browser. Proxy those calls through your backend, which holds the key. Clear the data layer of personal data. Test by searching storage, the data layer and built bundles for tokens and secret patterns after a normal session.
Related: NHI2:2025 Secret Leakage, M9 Insecure Data Storage, A04:2025 Cryptographic Failures.
8 Client-side Security Logging and Monitoring Failures
What it is. No real-time view of what happens in users’ browsers: which scripts ran, what they changed, what data they read, and which errors occurred, across both your own and third-party code. The source frames it as the client-side form of A09:2021.
How it shows up. A skimming script runs on the payment page for weeks. Server logs look normal, because the theft goes from the browser straight to the attacker’s host.
What to do. Collect CSP violation reports and front-end error telemetry centrally. Alert on new script sources and new outbound destinations. Keep that telemetry free of the personal data it is meant to protect. Test by adding a harmless unapproved script in staging and checking that an alert fires.
Related: A09:2025 Security Logging & Alerting Failures, 6 JavaScript Drift.
9 Not Using Standard Browser Security Controls
What it is. The site does not use the controls that browsers already provide: Content Security Policy, subresource integrity, iframe sandbox, and other security headers. The source keeps the list open-ended.
How it shows up. No CSP, or a CSP with unsafe-inline and a wildcard host that blocks nothing. Third-party iframes without sandbox. Pages that any site can frame, so clickjacking works.
What to do. Roll out CSP in report-only mode first, then enforce it. Use nonces or hashes rather than host lists. Add SRI to static third-party files. Sandbox iframes and give them only the permissions they need. Send frame-ancestors, HSTS, Referrer-Policy and Permissions-Policy. Test with a header scanner in CI and by reading the CSP reports. This item is the toolbox for items 1, 2, 5 and 6.
Related: A02:2025 Security Misconfiguration, 5 Lack of Third-party Origin Control.
10 Including Proprietary Information on the Client-Side
What it is. Business logic, developer comments, proprietary algorithms or system details shipped in front-end code or data. Anyone can read them in the browser’s developer tools.
How it shows up. Source maps deployed to production expose the whole front-end source, including comments that name internal hosts. Pricing or fraud rules run in JavaScript, so users can read them and work around them. For AI features, the system prompt, tool list or model routing logic is shipped in the client bundle instead of being kept on the server.
What to do. Keep rules that matter, such as pricing, entitlements, fraud checks and prompts, on the server. Strip comments and do not publish source maps publicly. Assume that anything sent to the browser is public. Test by reading your own production bundle with developer tools and searching for internal hostnames, keys and prompt text.
Related: LLM08:2026 Hidden Context Exposure, BLA10:2025 Shadow Function Abuse (SFA), M7 Insufficient Binary Protection.
What changed
There is no earlier edition. The list builds on the OWASP Top 10:2021. Items 1, 4 and 8 are written as client-side versions of A01, A06 and A09 of that edition. In the OWASP Top 10:2025, A06 became A03 Software Supply Chain Failures, and that entry now mentions client-side components. A7:2017 Cross-Site Scripting (XSS), merged into Injection in 2021, comes back here in its DOM-based form as item 2.
What it misses
- It is unfinished. The promised 2022 draft is not in the repository. The items are one or two sentences each, with no examples, tests or prevention advice, so readers must supply their own.
- No method. No data, survey or ranking is described.
- A misleading name. Item 3, “Sensitive Data Leakage”, is defined only as tracker and pixel privacy compliance. Leaks through other routes, such as URLs, referrers and error telemetry, are left out.
- Overlap. Items 5 and 6 describe the same third-party script risk from two angles. Item 9 is mostly the control set for items 1, 2, 5 and 6. Items 7 and 10 both cover data that should not reach the browser.
- Gaps. Clickjacking, cross-site request forgery,
postMessageand cross-window messaging, browser extensions, and service-worker abuse are not named. Neither are AI features in the browser, such as assistants and agents that read the page. - Licence in the future tense, and no LICENSE file.
Our take
Use this list as a checklist for front-end and third-party script reviews, and as a source of questions for vendors whose scripts you embed. Of the lists on this site, it is the only one that names JavaScript drift and third-party origin control as risks of their own. Both are real, under-tested risks for SaaS products. Do not use it as a standard or a compliance target. It is an unranked candidate list with no method, and it has not moved past that stage. For anything the server can enforce, prefer the OWASP Top 10:2025.
Item codes and names are from “OWASP Top 10 Client-Side Security Risks” by OWASP Top 10 Client-Side Security Risks Project, licence: CC BY-SA 4.0. Read the official text before relying on a detail. The review text on this page is ours.