Description

This check ensures that Node.js applications hosted on Hostinger have no npm dependencies with known vulnerabilities. Hostinger scans the packages listed in the application's lockfile after every deployment and on a regular schedule, and reports any package affected by a published advisory. Each Node.js website is evaluated separately.

Rationale

Most code in a Node.js application comes from third-party packages. A package with a known vulnerability can let attackers run code, steal data or take the application down, and exploits for published advisories are often available quickly. Patching vulnerable dependencies removes these known entry points.

Impact

  • Updating packages can change behaviour or break the build, especially for major version updates; test before deploying

  • Auto-fix is available only for applications deployed from a connected GitHub repository. It opens a pull request that you review and merge; only one patch pull request can be open per website at a time

  • Applications deployed from an archive must be updated and redeployed manually

  • Vulnerability scanning is available on Business web hosting and Cloud hosting plans

Default Value

Scanning runs automatically after each successful deployment and periodically. A new application shows Not scanned yet until its next deployment.

Pre-Requisites

  • Access to hPanel for the account that owns the hosting plan

  • A Business or Cloud hosting plan with the Node.js application

  • For Auto-fix: the GitHub repository connected and the Hostinger GitHub App given write access

Remediation

Test Plan

  1. Log in to hPanel at https://hpanel.hostinger.com.

  2. Go to Websites and click Dashboard next to the website.

  3. In the sidebar, select Security → Vulnerabilities.

  4. If the Unpatched dependencies table lists any package, the check fails for this website.

  5. Repeat for each Node.js website.

Implementation Steps

  1. Log in to hPanel at https://hpanel.hostinger.com.

  2. Go to Websites and click Dashboard next to the website.

  3. In the sidebar, select Security → Vulnerabilities and review the Unpatched dependencies table (package, installed version, fixed version, severity).

  4. Git-deployed application: select the vulnerabilities and click Auto-fix. Review the pull request that Hostinger opens in the repository and merge it. The merge triggers a new deployment and scan.

  5. Archive-deployed application: update the flagged packages locally (for example npm update <package>, or change the version in package.json and run npm install), test, rebuild the archive and redeploy it from Deployments → Deployment settings.

  6. For a vulnerability with no automatic fix (a major version update), update the package manually, test the application and redeploy.

  7. After the deployment, confirm that the table is empty.

Backout Plan

  1. If an updated package breaks the application, revert the merged pull request (or the package.json and lockfile change) in the repository and redeploy, or redeploy the previous archive from Deployments → Deployment settings.

  2. Then look for another version of the package that fixes the vulnerability and works with the application.

Note: Reverting brings the vulnerable package back; plan a tested fix as soon as possible.

Reference