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

@haatlabs-core/provider-vision

Latest version: v0.30.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: haat-labs
46 Versions
6.6K Downloads

Scan summary

@haatlabs-core/provider-vision was last scanned on 26 Nov 2026 at version 0.30.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 46 versions; the latest 5 were published within 2 days (25 and 26 Nov 2026).
  • Findings: No rules fired in version 0.30.0.
  • Downloads: 6,607 downloads.

Versions

46 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.30.0 LATEST 26 Nov 2026 No rules fired
0.29.2 26 Nov 2026 No rules fired
0.29.1 26 Nov 2026 No rules fired
0.29.0 26 Nov 2026 Not shown
0.28.0 25 Nov 2026 Not shown

No rules fired in 0.30.0

Findings

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

README

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

@haatlabs-core/provider-vision

Install

pnpm add @haatlabs-core/provider-vision

It leaves one package to your app, so the app holds one copy: zod.

What it does

Vision checks and product descriptions over @haatlabs-core/ai's text provider. createVisionChecker(text) answers whether an image shows a product (assess, with an optional caption) or what an image shows (inspect); build text with createTextProvider({ ..., temperature: 0, reasoningEffort }). createDescriber(text) writes a title, HTML description, SEO title and description and tags, in one of three tones and, when given, a language. Model answers are validated field by field and cleaned of unsafe characters.

Options

assess takes the image (WebP, JPEG or PNG, at most MAX_VISION_IMAGE_BYTES, 4 MiB), the product facts (title, vendor, productType, variantTitle), caption, signal and onUsage; inspect the image, signal and onUsage. describe takes product, tone, language, keywords, signal and onUsage.

Errors

@haatlabs-core/ai's AI_PROVIDER_ERROR (the model away, or an answer of the wrong shape) and the core VALIDATION_FAILED: an image of another type, empty or too large, a tone that is not one of DescribeTone, or a language that is not an ISO 639-1 code (from describe and describePrompt alike). passesVision throws a RangeError for a minMatch outside 0 to 1.

Gateway and deadlines

Unlike the other provider packages, the calls here take no CallContext: they run on the @haatlabs-core/ai text provider, which holds its own endpoint, key and timeout, and not through the gateway. The caller's signal and onUsage are the only per-call options.

Describing a product

const describer = createDescriber(text);
const listing = await describer.describe({
  product: { title: 'Trailblazer', brand: 'Acme' },
  tone: DescribeTone.FRIENDLY, // 'plain' | 'technical' | 'friendly'
  language: 'de', // an ISO 639-1 code; 'en' when left out
  keywords: ['bottle'],
});

describe needs all five fields in the answer and returns them cleaned: the HTML keeps only p, br, ul, ol, li, strong, em, h2, h3 without attributes, and the title, SEO title and SEO description are cut at a word to DESCRIPTION_LIMITS. describePrompt builds the same instructions for a caller with its own fields: extraLines go after the core field lines, and shorten asks again for the fields that came back too long. A language that is not one of ISO_639_1_CODES (lower case, so de, not DE), or a tone that is not one of the three, is a VALIDATION_FAILED. beforeTone and afterSeo put a caller's lines before the tone line and after the SEO description line.

Passing

passesVision(assessment, { minMatch }) is true when sameProduct is at least minMatch (default DEFAULT_MIN_MATCH, 0.7; a number from 0 to 1, else RangeError), both watermarkLikelihood and textOverlayLikelihood are known and below MAX_ARTIFACT_LIKELIHOOD (0.5), and suspectedInstructions is false. A null likelihood does not pass. It takes an inspection too: with no sameProduct (or a null one) that check is skipped and only the rest is checked.

Fixtures

@haatlabs-core/provider-vision/fixtures: visionFixtures.assess (with a caption, and passing), .inspect and .describe, the JSON a model replies with, for a fake text provider or a chat completion's content. Written in the shape the prompts ask for, not recorded from a model; each read is a fresh copy.

Testing

pnpm --filter @haatlabs-core/provider-vision test: unit tests against a fake fetch under the real OpenAICompatibleTextProvider.

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 @haatlabs-core/provider-vision

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

Copy of Template Design OX Blog (2)
Research

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

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

CVE

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

Frame 2085668439 (1)
Group 1261154229