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

@aphexcms/visual-editing

Latest version: v0.4.0-next.20261127233507

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: rainbowasian96
277 Stars
12 Forks
48 Versions
6.9K Downloads
TypeScript Repo language

Scan summary

@aphexcms/visual-editing was last scanned on 27 Nov 2026 at version 0.4.0-next.20261127233507. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 48 versions; the latest 5 were published on 27 Nov 2026.
  • Findings: No rules fired in version 0.4.0-next.20261127233507.
  • Downloads: 6,930 downloads.

Versions

48 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0-next.20261127233507 LATEST 27 Nov 2026 No rules fired
0.4.0-next.20261127154613 27 Nov 2026 No rules fired
0.4.0-next.20261127153248 27 Nov 2026 No rules fired
0.4.0-next.20261127150150 27 Nov 2026 Not shown
0.4.0-next.20261127141707 27 Nov 2026 Not shown

No rules fired in 0.4.0-next.20261127233507

Findings

Findings for v0.4.0-next.20261127233507. 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 0.4.0-next.20261127233507; other versions have their own rules, not their own score.

README

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

@aphexcms/visual-editing

Click-to-edit visual editing for AphexCMS.

Renders your real site in the studio's preview pane and makes the content in it clickable: an author clicks a heading on the page and lands on that field in the editor, with edits streaming back live.

📚 Documentation: docs.getaphex.com/visual-editing

Install

pnpm add @aphexcms/visual-editing

Setup is two things

1. Wrap your public layout. The overlay is a no-op unless the URL carries the ?aphex-preview marker the editor's iframe adds, so it costs real visitors nothing:

<script lang="ts">
    import { AphexVisualOverlay } from '@aphexcms/visual-editing';
    let { children } = $props();
</script>

<AphexVisualOverlay>
    {@render children()}
</AphexVisualOverlay>

2. Give the schema a previewUrl so the CMS knows which route renders a document:

previewUrl: (doc) => (doc.slug ? `/blog/${doc.slug}?aphex-preview=1` : null);

That's the whole setup. Plain text fields become click-to-edit automatically — the CMS encodes them with invisible stega markers, so the string carries its own field address.

usePreview() — the one helper

Everything else is one call, once per component:

<script lang="ts">
    import { usePreview } from '@aphexcms/visual-editing';
    const ve = usePreview();
    let { data } = $props();
    const page = $derived(ve.live(data.page));
</script>
Method For
live() Merge the editor's in-flight document over your load data
edit() Mark an element as the target for a field — required for arrays/images
image() The same, for an image that has no string to carry a marker
encode() Add markers to a string you derived yourself

Four things that are easy to get wrong

Each produces breakage that only appears in preview, which is why they're worth reading before you debug one:

  • A repeated block must reveal its own row. Spread {...ve.edit({ field: 'layout', arrayIndex: index })} onto its root element. Text is clickable on its own, but the surrounding chrome, buttons and empty states are inert without an explicit target — and a block that ignores its index sends the author to the top of the array instead of to their block.
  • Images always need edit()/image(). A string can carry stega inside itself; an image has no string to carry.
  • live() merges, it doesn't replace. It preserves underscore-prefixed keys (_posts, _form) that your load derived and the editor's document can't know about.
  • Clean any value you branch on. A stega-marked 'center' matches no ===, and the branch silently takes the wrong arm. stegaClean(value) before comparing; leave display strings marked, because that's what makes them clickable.

A block that renders a different document needs its own live(), gated on type and id — otherwise editing that document does nothing until a reload.

License

MIT

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 @aphexcms/visual-editing

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

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