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

@vulcantech/blog

Latest version: v0.3.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: vulcantechio
5 Versions
38 Downloads

Scan summary

@vulcantech/blog was last scanned on 24 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest was published on 24 Nov 2026.
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 38 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 24 Nov 2026 No rules fired
0.2.2 2 Sep 2026 No rules fired
0.2.1 31 Aug 2026 No rules fired
0.2.0 31 Aug 2026 Not shown
0.1.0 11 Aug 2026 Not shown

No rules fired in 0.3.0

Findings

Findings for v0.3.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 0.3.0; other versions have their own rules, not their own score.

README

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

@vulcantech/blog

Server-side blog fetch layer for VulcanTech consumer sites. Reads published posts from the CMS with Next.js ISR tags, and supports signed draft-preview tokens so unpublished posts can be reviewed on the live site. Shared so each site stops duplicating lib/cms/blog.ts.

Exports: fetchBlogPosts, fetchBlogPostBySlug, resolvePreviewToken, GET (the draft-preview route handler), tagsForBlogList / tagsForBlogPost, sanitizeHtml, and the CMSBlogPost / CMSBlogAuthor / CMSVideoDescriptor / FetchOptions / FetchPostsOptions / FetchPostOptions types.

Server-only — uses VULCANTECH_API_KEY; import from server components / route handlers only.

Post shape (CMSBlogPost)

content is sanitized HTML (TipTap editor output), not markdown — render it with dangerouslySetInnerHTML, never through a markdown renderer. It is sanitized on write by the CMS and re-sanitized by this package's fetchers, so injecting it as-is is safe by default. The exported sanitizeHtml is the same boundary pass — only needed for CMS HTML obtained some other way.

interface CMSBlogPost {
  id: string;
  projectId: string;
  title: string;
  slug: string;
  content: string;               // sanitized HTML — see above
  excerpt: string;               // plain-text summary
  author: { uid?: string; name: string; avatar?: string }; // object, not a string
  tags: string[];
  category?: string;             // single editorial bucket (vs free-form tags)
  routePrefix?: string;          // URL space; absent = "blog" (see Scoped routes)
  keywords?: string;             // comma-separated SEO keywords, target keyword first
  featuredImage?: string;        // in-page hero / card image
  featuredVideo?: CMSVideoDescriptor; // advisory; most posts have none (see step 8)
  ogImage?: string;              // social card override — read via postSeoMeta()
  seoTitle?: string;             // SERP title override — read via postSeoMeta()
  seoDescription?: string;       // description override — read via postSeoMeta()
  status: "draft" | "in_review" | "scheduled" | "published" | "archived";
  publishedAt?: string;          // ISO 8601; always present on published posts
  scheduledAt?: string;          // ISO 8601; when a "scheduled" post goes live
  createdAt: string;             // ISO 8601
  updatedAt: string;             // ISO 8601
  postType?: "article" | "case-study" | "announcement"; // absent = "article"
  metadata?: { label: string; value: string }[]; // case-study spec sheet — see below
}

Field notes:

  • seoTitle / seoDescription / ogImage are per-post SEO overrides, and a cleared one arrives as "" — so seoTitle ?? title ships an empty <title>. Read them through postSeoMeta(post), which treats blanks as unset and returns { title, titleIsOverride, description, ogImage }. A seoTitle is a complete SERP title: emit it as { absolute } so the layout's title template doesn't brand it twice. Use description for JSON-LD too (listing pages included), not the raw excerpt:

    import { postSeoMeta } from "@vulcantech/blog";
    
    const seo = postSeoMeta(post);
    return {
      title: seo.titleIsOverride ? { absolute: seo.title } : seo.title,
      description: seo.description,
      openGraph: { title: seo.title, description: seo.description, images: seo.ogImage ? [seo.ogImage] : undefined },
    };
  • metadata is a case-study spec sheet (e.g. Make: 1969 Camaro, Engine: LS3). The CMS only offers the editor when postType is "case-study"; render it as a spec/details table on case-study layouts and ignore it everywhere else — do not dump it onto regular articles.

  • status — the public fetchers only ever return published posts (or a token-unlocked draft in preview mode), so you never need to filter by status yourself. published means live now. A post waiting for its date is scheduled + scheduledAt; the CMS flips it to published (stamping publishedAt) when the time arrives, so it is never served early. Anything writing posts directly (seed scripts, Admin SDK) must follow the same rule — a published doc with a future publishedAt is live immediately, not scheduled.

What's inside content

The editor is TipTap (StarterKit + a few nodes), and the CMS sanitizes on write against a fixed allowlist, so the markup vocabulary is small and known:

  • Blocks: p, h2–h6, ul/ol/li, blockquote, pre > code, hr, tables, details/summary (native toggles, used by documentation posts). Headings start at h2 by convention — the editor toolbar offers H2–H6 and h1 is left for your <h1>{post.title}</h1> — though the sanitizer permits h1, so imported/legacy content may carry one. There are no task lists.

  • Inline: strong/em/u/s, inline code, sub/sup/mark, and a — links are written with target="_blank" rel="noopener noreferrer" already set.

  • Images arrive as plain <img> with class="rounded-lg my-4 max-w-full h-auto" and no width/height attributes. Two consequences: next/image is not usable inside content (no dimensions, and it's raw HTML) — render the body as-is; and Tailwind cannot scan CMS content, so those utility classes only take effect if your build already emits them. Add a plain CSS rule to be safe (this is the most common overflow bug, more so than videos):

    .blog-content img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1rem 0; }
  • Image galleries serialize to an empty <div class="cms-gallery" data-gallery='[…]'> — it renders as nothing unless you hydrate it. Inside the monorepo, BlogCarousel from ui/src/portfolio reads data-gallery; without a hydrator, expect a silent gap where the gallery was.

  • Tables arrive unstyled and non-resizable (no width attributes, every cell's text <p>-wrapped) — borders, padding, and overflow scrolling are entirely your CSS's job.

  • Inline styling does not survive. Both sanitizers strip style attributes and <style> tags on write, so any inline color/size/alignment an editor applies silently disappears on the consumer site. That is by design (CSS-injection surface) — editors reporting "my formatting vanished" are seeing this, not a bug in your site.

Because of all this, a typographic wrapper (@tailwindcss/typography's prose, or hand-written styles scoped to your content container) is expected — the HTML itself carries no presentation beyond the image classes above.

Fetching and failure mode

fetchBlogPosts(options?) returns posts newest-first by publishedAt — the CMS orders them; do not add your own sort. It accepts server-side filters — category, routePrefix, tag, search, limit, and startAfter (a pagination cursor: the id of the last post of the previous page) — plus the caching knobs revalidate (default 60s), extraTags, and noStore. Prefer these filters over fetching everything and filtering client-side, with one exception:

  • Don't pass routePrefix: "blog" for the blog itself. Legacy posts predate the field and have no prefix, so that filter would exclude them. Filter the blog list client-side with an isBlogPost predicate (see Scoped routes below); pass routePrefix only for non-blog scopes like "documentation".

Pagination: the response is a bare post list — there is no hasMore or total. To paginate, fetch limit + 1: if you get more than limit posts there is another page — drop the extra and pass the last kept post's id as the next startAfter.

The fetchers never throw. On any CMS error (unreachable, non-2xx, unconfigured env) they log a warning and return [] / null. So: no try/catch error UI — it can never fire. Instead, handle the empty list on index pages and call notFound() on a null post.

Integration

Wire blog into a consumer site (Next.js App Router):

1. Add the dependency:

npm install @vulcantech/blog

(Inside the VulcanTech monorepo, use the workspace wiring in MONOREPO.md instead.)

2. Set the env — see Required env below.

3. (Optional) thin re-export src/lib/cms/blog.ts to preserve @/lib/cms/blog import paths:

export * from "@vulcantech/blog";

4. Blog pages — list + single post (server components):

import { fetchBlogPosts, fetchBlogPostBySlug, resolvePreviewToken } from "@vulcantech/blog";

// app/blog/page.tsx
const posts = await fetchBlogPosts();

// app/blog/[slug]/page.tsx — resolve the preview token (Draft Mode) and pass it through
const previewToken = await resolvePreviewToken();
const post = await fetchBlogPostBySlug(slug, { previewToken });

In generateMetadata, prefer the post's derived keywords string (the CMS builds it from the post's dedicated SEO keyword fields — target keyword first) and fall back to tags:

keywords: post.keywords || (post.tags?.length ? post.tags : [post.title, "Brand"]),

5. Draft-preview route src/app/api/preview/route.ts — one line, shared implementation:

export { GET } from "@vulcantech/blog";

The CMS mints a signed token and links to /api/preview?token=…&slug=…&prefix=…; the handler validates it, enables Next Draft Mode, and redirects to the post at /{routePrefix}/{slug} (the post's own routePrefix, falling back to prefix, then blog) — so a post in a policies or legal space previews on its own route. Pages on those routes must call resolvePreviewToken() like the blog post page does, or drafts there will 404. Reading the token opts the render dynamic — keep the public [slug] route static/ISR and let Draft Mode switch it.

6. ISR invalidation — ensure src/app/api/revalidate/route.ts exists, set VULCANTECH_REVALIDATE_SECRET, and register the site under Settings → Form Consumers (ISR Revalidation) in the CMS. That list serves every integration, not just forms — skip it and blog edits wait out the 60s window instead of purging instantly. The CMS purges blog:{projectId} (list) and blog:{projectId}:{slug} (single) on edit. Route contract and reference copy: the @vulcantech/cms README, ISR revalidation.

7. (Optional) video styling — authors can drop videos into post content. They arrive as real, playable markup (<video class="cms-video"> for CMS-hosted files, a pinned youtube-nocookie.com <iframe class="cms-video"> for YouTube), so a site that does nothing still plays them. Add this to your global CSS to size them:

.cms-video {
  display: block;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.5rem;
}
/* YouTube Shorts — 9:16 */
.cms-video--short {
  max-width: 20rem;
  aspect-ratio: 9 / 16;
}
/* Only present when the author wrote a caption */
.cms-video-figure { margin: 1.5rem 0; }
.cms-video-figure figcaption { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.7; }

8. (Optional) featured video — a post may carry featuredVideo beside featuredImage: structured metadata, not markup, so your site decides the treatment (hero player, card thumbnail, or ignore it). Most posts have none.

type CMSVideoDescriptor =
  | { provider: "youtube"; videoId: string }
  | { provider: "youtube-short"; videoId: string }   // 9:16
  | { provider: "file"; url: string; poster?: string };  // CMS media library

The CMS pins both halves on write — videoId is safe to interpolate into a YouTube embed URL, and url is always on the media host — so there is nothing to re-validate before rendering. Inside the monorepo, ui ships a ready-made player rather than each site hand-rolling the iframe:

import { VideoEmbed } from "ui/src/video";

{post.featuredVideo && <VideoEmbed video={post.featuredVideo} className="rounded-xl" />}

This is separate from videos the author placed within the article — those arrive as playable markup inside content (step 7 above) and need no code.

Scoped routes (routePrefix)

Posts carry an optional routePrefix that decides which URL space they live in on the consumer site: "blog" → /blog/<slug> (the default; legacy posts with no prefix count as blog), "legal" → /legal/<slug>, "documentation" → /documentation/<slug>, etc. Editors set it per-post in the CMS dashboard. One Firestore collection powers all of them — the split happens at fetch/render time.

Wiring a scoped route (e.g. documentation) takes three pieces:

1. A scope predicate — keep /blog clean. fetchBlogPosts() returns every published post regardless of prefix, so the blog list/related-posts must filter, or scoped posts leak onto /blog. Centralize the predicate in one module (e.g. src/lib/cms/postScope.ts) instead of scattering !== "legal" checks:

export const BLOG_ROUTE_PREFIX = "blog";
/** Legacy posts predate the field, so no prefix also means "blog". */
export function isBlogPost(post: { routePrefix?: string }): boolean {
  return !post.routePrefix || post.routePrefix === BLOG_ROUTE_PREFIX;
}

New prefixes are then excluded from /blog automatically, with no further edits.

2. The scoped pages. List pages fetch with the prefix; the [slug] page must ALSO guard the prefix so a blog slug can never render on the scoped route:

// app/documentation/page.tsx
const docs = await fetchBlogPosts({ routePrefix: "documentation" });

// app/documentation/[slug]/page.tsx
const post = await fetchBlogPostBySlug(slug);
if (!post || post.routePrefix !== "documentation") notFound();

generateStaticParams should use the same fetchBlogPosts({ routePrefix }) call.

3. Revalidation. Nothing extra — the CMS purges the same blog:{projectId} tags on edit, so scoped pages revalidate with the blog as long as they use this package's fetchers (which attach those tags).

Required env

VULCANTECH_PROJECT_ID, VULCANTECH_API_KEY (required) · VULCANTECH_REVALIDATE_SECRET (required for instant ISR purges; see step 6) · VULCANTECH_CMS_URL (optional, default https://cms.vulcantech.io) · VULCANTECH_BLOG_NO_CACHE (optional, 1/true to bypass ISR while debugging).

Per-app values

None beyond env — all blog logic is shared.

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 @vulcantech/blog

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229