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

@accredify/decentralized-renderer-react-components

Latest version: v1.1.2

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: derricklee_accredify, eddiejpot, edwinaccredify, rejin-accredify, skydudie
2 Stars
4 Forks
6 Versions
480 Downloads
TypeScript Repo language

Scan summary

@accredify/decentralized-renderer-react-components was last scanned on 24 Nov 2026 at version 1.1.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 2 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 1.1.2.
  • Downloads: 480 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.2 LATEST 24 Nov 2026 No rules fired
1.1.1 23 Nov 2026 No rules fired
1.1.0 10 Nov 2026 No rules fired
1.0.4 7 Oct 2026 Not shown
1.0.3 24 Sep 2026 Not shown

No rules fired in 1.1.2

Findings

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

README

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

decentralized-renderer-react-components

React components abstracting the communication with Open Attestation decentralized renderer. More information on this:

Setting up

Open command line, enter

npm install -g typescript
npm install -g copyfiles

Add this to the system environment variable (Windows)

%APPDATA%\npm 

Open cmd Enter tsc -version. It show should something simillar

Version 3.8.3

Developing the local renderer.

Update the env file at the platform

npm run example:renderer

Features

  • React - A JavaScript library for building user interfaces.
  • Webpack - Component bundler.
  • React testing library - Simple and complete testing utilities that encourage good testing practices.
  • Jest - JavaScript testing framework used by Facebook.
  • ESLint - Make sure you are writing a quality code.
  • Prettier - Enforces a consistent style by parsing your code and re-printing it.
  • Typescript - JavaScript superset, providing optional static typing
  • GitHub Actions - Lint, type-check, test and build on every pull request; publish to npm on release.
  • Storybook - Tool for developing UI components in isolation with documentation.
  • Debug - JS debugging utility that works both in node.js and browsers.

How it works

To begin with, makes sure you read the initial introduction and explanation about decentralized renderer

In order to render a document, hosts will load the corresponding decentralized renderer (as specified by the document) and embed it using an iframe. Communication between host and iframe is made using postMessage API and has been designed using actions.

Actions API

All actions follow the same structure and are composed of type and payload

  • type indicates the kind of action being executed, for instance RENDER_DOCUMENT to render a document. The type of an action is mandatory
  • payload indicates optional data associated to the type, for instance the content of the document to render.

Example:

const renderDocumentAction = {
  type: "RENDER_DOCUMENT",
  payload: {
    document: documentToRender
  }
};

const printAction = {
  type: "PRINT"
};
From host to frame actions

The following list of actions are made for host to communicate to the iframe (and thus must be handled by application embed in the iframe):

  • render a document:
    • type: RENDER_DOCUMENT
    • payload: object with 2 properties
      • document: (mandatory) document data as returned by getData method from @govtechsg/open-attestation
      • rawDocument: (optional) Open Attestation document
const action = {
  type: "RENDER_DOCUMENT",
  payload: {
    document: getData(document),
    rawDocument: document
  }
};
  • select a template amongst the one provided by the decentralized renderer (A renderer may provide 1 to many different template to display a document):
    • type: "SELECT_TEMPLATE"
    • payload: (mandatory) template id to display
const action = {
  type: "SELECT_TEMPLATE",
  payload: "CUSTOM_TEMPLATE"
};
  • request for printing a document
    • type: "PRINT"
const action = {
  type: "PRINT"
};

There is a 4th action that can be used in the context of react-native application (which doesn't use iframe under the hood)

  • request for the list of templates for a document. The action directly return the list of templates
const action = {
  type: "GET_TEMPLATES",
  payload: getData(document)
};
From frame to host actions

The following list of actions are made for iframe to communicate to the host (and thus must be handled by application embedding the iframe):

  • provide the full content height of the iframe so that the host can adapt the automatically the size of the embedded iframe.
    • type: "UPDATE_HEIGHT"
    • payload: (mandatory) full content height of the iframe
const action = {
  type: "UPDATE_HEIGHT",
  payload: 150
};
  • provide the full content width of the iframe so that the host can adapt the automatically the size of the embedded iframe.
    • type: "UPDATE_WIDTH"
    • payload: (mandatory) full content width of the iframe
const action = {
  type: "UPDATE_WIDTH",
  payload: 150
};
  • provide the name of a field on the document to obfuscate. The value must follow path property as handled by lodash#get
    • type: "OBFUSCATE"
    • payload: (mandatory) path to the field
const action = {
  type: "OBFUSCATE",
  payload: "a[0].b.c"
};
  • provide the list of templates that can be used to render a document
    • type: "UPDATE_TEMPLATES"
    • payload: (mandatory) an array where each element is an object composed of a string and a label
const action = {
  type: "UPDATE_TEMPLATES",
  payload: [
    {
      id: "certificate",
      label: "Certificate"
    },
    {
      id: "transcript",
      label: "Transcript"
    }
  ]
};

How to use

The library provide 2 mains components

FrameConnector

This component will create a frame and establish a connection with the provided decentralized renderer. Properties are:

  • source: url to the decentralized renderer that will handle the document to display
  • dispatch: function listening for actions triggered by the decentralized renderer
  • onConnected: function called when the connection to the decentralized renderer has been established. The function will be provided as first parameter another which can be used to send actions to the iframe

Please check the code in example/application to see how to use this component. You can also start the example application using the command npm run example:application

FramedDocumentRenderer

This component will establish a connection with a host embedding the application within an iframe. Properties are:

  • templateRegistry: the configuration of the templates handled by the decentralized renderer. templateRegistry is an object where each key hold an array of Template Configuration. One Template Configuration consist of :
    • id: a unique (withing the current array) identifier of the template
    • label: a string to represent what's the template is,
    • template: a Template, that is to say a react component that will render a document
  • attachmentToComponent: a function that maps attachments to a component depending on the attachment type. The library exposes:
    • noAttachmentRenderer: which uses UnsupportedRenderer (basically it's doing nothing)
    • fullAttachmentRenderer: supports image/jpeg, image/png and application/pdf. PDF attachments are rendered as images using the convertPdfToImages function (see below); when none is provided they are shown via UnsupportedRenderer.
    • createFullAttachmentRenderer(convertPdfToImages): builds a fullAttachmentRenderer bound to a specific PDF converter. When omitted, attachmentToComponent defaults to fullAttachmentRenderer (bound to convertPdfToImages when that prop is supplied).
  • convertPdfToImages: an optional (pdfData: string) => Promise<string[]> that converts a base64-encoded PDF (data-URI or raw base64) into one image data-URL per page. The library no longer bundles pdf.js — it previously came in via react-pdf, which shipped pdf.js 2.1.266 (CVE-2024-4367). Supply your own pdf.js-based converter (with isEvalSupported: false) to render PDF attachments.

FramedDocumentRenderer handle all the logic around the communication with the hosted application and the renderer:

  • it will automatically call UPDATE_HEIGHT action, when the iframe is resized or when there is a change within the iframe (using Mutation Observer)
  • it will automatically call UPDATE_WIDTH action, when the iframe is resized or when there is a change within the iframe (using Mutation Observer)
  • it will automatically call the Template to render depending on information provided by the host
  • it will automatically provide the available templates when a document has been requested for rendering (i.e. it will call UPDATE_TEMPLATES action once the document has been renderer)
  • it will automatically call OBFUSCATE action when requested by a Template

Please check the code in example/decentralized-renderer to see how to use this component. You can also start the example application using the command npm run example:renderer

Template (React component)

Each configured Template will be provided the following properties, when rendering a document:

  • document: (mandatory) document data as returned by getData method from @govtechsg/open-attestation
  • rawDocument: (optional) Open Attestation document
  • handleObfuscation: (mandatory) A function to call to handle obfuscation in the document. The value provided must follow path property as handlded by lodash#get

Development

  • npm run storybook: to start storybook, create stories and visualize the different component
  • npm run test: to run tests
  • npm run lint: to run lint
  • npm run example:application: to run the example build with the library to develop an hosting application. Don't forget to update the example if you update this library.
  • npm run example:renderer: to run the example build with the library to develop a decentralized renderer. Don't forget to update the example if you update this library.

We also provided a github template to build your own decentralized-renderer based on this library

Deployment Guide

Publishing is automated. Merging to main does not publish; creating a GitHub Release does.

  1. Open a PR that bumps "version" in package.json (npm version minor --no-git-tag-version, or edit it by hand) and merge it.

  2. Create a GitHub Release whose tag is v followed by that version, for example v1.1.0:

    gh release create v1.1.0 --generate-notes
  3. The Publish workflow builds and runs npm publish. It fails if the tag does not match package.json.

Publishing uses npm Trusted Publishing, so there is no npm token to manage. The trusted publisher is registered on npmjs.com under the package's Settings and points at this repository's publish.yml. Marking a release as a pre-release does not publish.

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 @accredify/decentralized-renderer-react-components

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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (2)
Research

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229