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

pdf-html5-page-flip

Latest version: v2.0.2

Overview

Last scanned
12 Nov 2026
Published
10 Nov 2026
AI: Malicious npm package Publisher: iamapinan
111 Stars
49 Forks
3 Versions
Java Repo language

Scan summary

pdf-html5-page-flip was last scanned on 12 Nov 2026 at version 2.0.2. Risk score 90 of 100 (critical). High-severity rules fired and the AI review flagged it as malicious.

  • Releases: 3 versions, all published on 10 Nov 2026.
  • Findings: 6 rules fired in version 2.0.2 (6 high). The score describes this version only.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.2 LATEST 10 Nov 2026 6 rules fired
2.0.1 10 Nov 2026 6 rules fired
0.0.0-stage 10 Nov 2026 Not shown

Rules fired in 2.0.2: 6

Findings

6 High

Findings for v2.0.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.

AI review assessed the package as likely malicious

An automated AI review assessed the package's behavior as likely malicious, based on code excerpts, package metadata and the other findings for this package. It is an automated assessment, not a confirmed result on its own, and should be reviewed.

HIGH

Autostart entry runs a downloaded or temporary program

HIGH

Autostart reference next to a flagged host

HIGH

and 3 more

Checking access…

🔒 Create a free account to see all 6 findings with descriptions and instance counts

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

README

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

PDF HTML5 Page Flip Pro (pdf-html5-page-flip)

License: Apache-2.0 TypeScript Vite React Tailwind CSS Live Demo

A modern, high-performance, client-side 3D Web Application and React Component that converts standard PDF files into realistic, hardware-accelerated HTML5 flipbooks with physics-based page turning, memory virtualization, full-text search, customizable branding, and on-demand AI document summarization.

Live Production Website: https://flipbook.apps.gracer.ai (or https://pdf-flip.apps.gracer.ai)


Key Highlights and Architecture

  • 100% Client-Side Privacy: All parsing and rendering execute directly in the browser runtime using PDF.js and Web Workers. Confidential documents never leave the client device.
  • High Performance Display: Dynamic viewport calculation with hardware acceleration, responsive page scaling, and automatic memory cleanup for distant pages.
  • Remote PDF and Deep Link Support: Open public remote PDFs directly through the user interface or URL parameters (?pdf=https://example.com/doc.pdf) with automated CORS proxy fallback.
  • Customizable Appearance and Branding: Toggle brand logo, adjust theme (Dark, Light, Wood), configure accent colors, and customize toolbar items.
  • Synthesized Page-Turn Audio: Dynamically creates realistic paper friction sounds on-the-fly via the Web Audio API without external audio files or network requests.
  • HiDPI and Retina Sharpness: Canvases scale dynamically based on window.devicePixelRatio for sharp rendering across all displays and zoom levels.
  • Full-Text Search and Dynamic Outline: Scans and indexes document text with context snippets and extracts native PDF bookmarks for a Table of Contents.
  • AI Document Assistant: Extracts active page text to deliver concise executive summaries on demand.

Quick Start (React Component)

1. Installation

Configure your project .npmrc to route the @iamapinan scope to GitHub Packages:

@iamapinan:registry=https://npm.pkg.github.com

Install the package:

npm install pdf-html5-page-flip
2. Basic Usage
import React from 'react';
import { PdfFlipbook } from 'pdf-html5-page-flip/react';
import 'pdf-html5-page-flip/style.css';

export default function DocumentViewer() {
  return (
    <div style={{ width: '100vw', height: '100vh' }}>
      <PdfFlipbook
        src="/assets/sample.pdf"
        theme="dark"
        mode="auto"
        accentColor="#6366f1"
        showLogo={true}
        onPageChange={(page, total) => console.log(`Active: ${page}/${total}`)}
      />
    </div>
  );
}

Props API Reference (<PdfFlipbook />)

Prop Type Default Description
src string \| File \| ArrayBuffer Required PDF source URL string, File object, or raw ArrayBuffer
theme 'dark' \| 'light' \| 'wood' 'dark' Overall reading background theme
mode 'auto' \| 'single' \| 'double' 'auto' Page presentation mode (auto-detects viewport width)
accentColor string '#6366f1' Accent color used for highlights, icons, and buttons
showLogo boolean true Show or hide brand logo and title in the top toolbar
showToolbar boolean true Show top glassmorphism toolbar
showSidebar boolean true Show collapsible left sidebar drawer
showNavigation boolean true Show page turn buttons and direct page jump input
showSearch boolean true Enable full-text keyword search tab
showOutline boolean true Enable document Table of Contents (TOC) tab
showBookmarks boolean true Enable page bookmarking and saved marks tab
showThumbnails boolean true Enable visual page thumbnails grid tab
showAiSummary boolean true Enable AI assistant modal and summarizer
showZoom boolean true Enable zoom in, zoom out, and fit controls
showPrint boolean true Enable single-page image export and print
showSound boolean true Enable synthesized paper friction audio
showFullscreen boolean true Enable fullscreen toggle button
showThemeToggle boolean true Enable theme cycler in toolbar
showViewToggle boolean true Enable single/double page switcher button
showFileUpload boolean true Enable local PDF picker button
showUrlInput boolean true Enable remote URL input modal button
flippingTime number 800 Duration of flip animation in milliseconds
onPageChange (page, total) => void undefined Callback fired when current page changes
onDocumentLoad (pdfDoc) => void undefined Callback fired when PDFDocumentProxy is resolved
onFileSelect (file: File) => void undefined Callback fired when a local file is opened inside viewer

Web Component Usage (Vanilla HTML or Non-React)

Embed the flipbook into static websites or non-React web applications:

<script type="module" src="https://flipbook.apps.gracer.ai/assets/index.js"></script>
<link rel="stylesheet" href="https://flipbook.apps.gracer.ai/assets/index.css" />

<!-- Embed in one line -->
<pdf-flipbook src="/technical-guide.pdf" theme="dark" mode="auto"></pdf-flipbook>

Local Development and Deployment

Run Locally
# Clone the repository
git clone git@github.com:iamapinan/pdf-html5-page-flip.git
cd pdf-html5-page-flip

# Install dependencies
npm install

# Start Vite development server
npm run dev

# Build web application and library package
npm run build

# Preview build locally
npm run preview
Docker Deployment

A lightweight Docker Compose configuration with custom Nginx MIME routing is included:

docker compose up -d

Repository Structure

pdf-html5-page-flip/
├── index.html              # Modern Web Application shell
├── compose.yml             # Docker Compose deployment specification
├── nginx.conf              # Nginx reverse-proxy and MIME configuration
├── package.json            # Package metadata, exports, and dependencies
├── tsconfig.json           # TypeScript configuration for application
├── tsconfig.lib.json       # TypeScript configuration for library declarations
├── vite.config.ts          # Vite bundler configuration for application
├── vite.config.lib.ts      # Vite bundler configuration for library package
└── src/
    ├── App.tsx             # Studio application and Props Configurator
    ├── main.tsx            # React application entrypoint
    ├── index.ts            # NPM package entrypoint
    ├── style.css           # Tailwind v4 styles, 3D book spine lighting
    ├── sound.ts            # Web Audio API paper friction synthesizer
    ├── component.ts        # Standalone Web Component (<pdf-flipbook>)
    └── react/
        ├── PdfFlipbook.tsx # Configurable React Component
        ├── types.ts        # TypeScript Props interface
        └── index.ts        # React export entrypoint

Contributors


License

Open-source licensed under the Apache-2.0 License.\ Created and maintained by iamapinan.

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 pdf-html5-page-flip

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

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

Frame 2085668439 (1)
Group 1261154229