Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@mlightcad/cad-onedrive-plugin

Latest version: v1.8.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: mlight.li
1,289 Stars
261 Forks
18 Versions
2.4K Downloads
TypeScript Repo language

Scan summary

@mlightcad/cad-onedrive-plugin was last scanned on 29 Nov 2026 at version 1.8.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 18 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 1.8.0.
  • Downloads: 2,404 downloads.

Versions

18 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.8.0 LATEST 29 Nov 2026 No rules fired
1.8.0-preview.6 22 Nov 2026 No rules fired
1.8.0-preview.3 6 Nov 2026 No rules fired
1.8.0-preview.2 6 Nov 2026 Not shown
1.8.0-preview.1 5 Nov 2026 Not shown

No rules fired in 1.8.0

Findings

Findings for v1.8.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.8.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@mlightcad/cad-onedrive-plugin

License: MIT

OneDrive data source plugin for @mlightcad/cad-simple-viewer. Registers an AcApDataSource so Open menus in cad-viewer and cad-simple-ui-plugin can open .dwg / .dxf files from Microsoft OneDrive / SharePoint.

Why two clicks (Sign in, then Open)?

Browsers only allow window.open in a direct user-gesture tick. Microsoft’s File Picker v8 must run in a popup. If you await MSAL login and then open the picker, the second popup is blocked.

This plugin therefore exposes:

  1. Sign in to OneDrive — MSAL loginPopup only
  2. Open from OneDrive — opens the blank picker window synchronously on click, then posts into File Picker v8

Never chain sign-in into pick in the same click handler.

Installation

pnpm add @mlightcad/cad-onedrive-plugin @azure/msal-browser

Peer dependencies: @mlightcad/cad-simple-viewer, @mlightcad/data-model.

Azure app setup

  1. Register a Single-page application in Microsoft Entra ID.
  2. Add a redirect URI matching the page that hosts the viewer (e.g. http://localhost:5173/ locally, or https://mlightcad.com/cad-viewer/cad-viewer/ on GitHub Pages). Do not use only the site origin when the app is served from a subpath.
  3. Grant delegated Graph permissions: User.Read, Files.Read.All.
  4. For personal OneDrive picker tokens, consent also covers OneDrive.ReadOnly.

Registration

import { AcApDocManager } from '@mlightcad/cad-simple-viewer'
import { registerOneDrivePlugin } from '@mlightcad/cad-onedrive-plugin/register'

await registerOneDrivePlugin(AcApDocManager.instance.pluginManager, {
  clientId: import.meta.env.VITE_MSAL_CLIENT_ID,
  tenantId: import.meta.env.VITE_MSAL_TENANT_ID || 'common',
  redirectUri: import.meta.env.VITE_MSAL_REDIRECT_URI // optional
})

The plugin loads eagerly so Open menus list OneDrive immediately. MSAL itself is still imported on demand inside sign-in / pick.

UI

After registration, File → Open (cad-viewer) and the Open toolbar item (cad-simple-ui-plugin) rebuild from dataSourceManager:

Auth state Menu items
Signed out Sign in to OneDrive
Signed in Open from OneDrive, Sign out of OneDrive

Build

pnpm --filter @mlightcad/cad-onedrive-plugin build

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @mlightcad/cad-onedrive-plugin

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229