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

larvituser

Latest version: v1.0.37

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: gagge, jaggu-darull, jaggu-larvit-npm-publish, jaggu-snorr, klabbekluck, lilleman, vktr
0 Stars
0 Forks
10 Versions
2.4K Downloads
TypeScript Repo language

Scan summary

larvituser was last scanned on 1 Dec 2026 at version 1.0.37. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest was published on 1 Dec 2026.
  • Findings: No rules fired in version 1.0.37.
  • Downloads: 2,417 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.37 LATEST 1 Dec 2026 No rules fired
1.0.36 23 Nov 2026 No rules fired
1.0.35 2 Nov 2026 No rules fired
1.0.34 2 Nov 2026 Not shown
1.0.32 12 Oct 2026 Not shown

No rules fired in 1.0.37

Findings

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

README

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

Build Status

larvituser

User module for node.js

Basic usage

First fire up the library connections like this:

const UserLib = require('larvituser'),
    Intercom = require('larvitamintercom'),
    winston = require('winston'),
    log = winston.createLogger({'transports': [new winston.transports.Console()]}),
    userLib = new UserLib({
        'db': require('larvitdb'),

        // Optional parameters
        'log': log
    });

db.setup(...); // See https://github.com/larvit/larvitdb for configuration details

Create a new user in the database, do like this:

const userData = {
    'firstname': 'Nisse',
    'lastname': 'Nilsson',
    'role': [
        'user',
        'subscriber'
    ]
}

const user = await userLib.create('myUsername', 'myPassword', userData);
console.log('New user UUID: ' + user.uuid);

When creating a new user you can also give the user a uuid of your choice:


const uuidLib = require('uuid');
const uuid = uuidLib.v1();
const userData = {
    'firstname': 'Nisse',
    'lastname': 'Nilsson',
    'role': [
        'user',
        'subscriber'
    ]
}
const user = await userLib.create('myUsername', 'myPassword', userData, uuid);
console.log('New user UUID: ' + user.uuid);

To fetch a user from database based on username and password, do like this:

const user = await userLib.fromUserAndPass('myUsername', 'myPassword');
if ( ! user) {
    // No match found, or other more serious error
} else {
    console.log('Fetched user ID: ' + user.id);
}

List multiple users

const users = new UserLib.Users({'db': db, 'log': log});

const result = await users.get();
console.log(result.users); // An array of objects

Get distinct values for field from all users

const users = new UserLib.Users({'db': db, 'log': log});

const result = await users.getFieldData('fieldName');
console.log(result); // An array of strings

List multiple users ordered by field

const users = new UserLib.Users({'db': db, 'log': log});

users.order = {
    by: 'username', // Sorting by something else than uuid or username the field needs to be included in "returnFields"
    direction: 'desc' // "asc" is default
}

const result = await users.get();
console.log(result.users); // An array of objects
Advanced usage
Add data to a user
await userLib.addUserDataField(userUuid, fieldName, fieldValue);
Check a password for validity
const isValid = await userLib.checkPassword('passwordToTest', 'theHashToTestAgainst');
Create a new user
const user = await userLib.create('username', 'password', {'firstname': 'John', 'lastname': 'Smith'});console.log(user.uuid); // 91f15599-c1fa-4051-9e0e-906cab9819fe (or rather, a random Uuid)

Or set an Uuid manually like this:

const user = await userLib.create('username', 'password', {'firstname': 'John', 'lastname': 'Smith'}, 'f9684592-b245-42fa-88c6-9f16b9236ac3');
console.log(user.uuid); // f9684592-b245-42fa-88c6-9f16b9236ac3
Fetch a user based on a field

Will fetch the first occurance in the database with this field name and field value.

const user = await userLib.fromField('firstname', 'John');
console.log(user.uuid); // f9684592-b245-42fa-88c6-9f16b9236ac3
Fetch a user based on several fields

Will fetch the first occurance in the database that matches all these field names and field values

const user = await userLib.fromFields({'firstname': 'John', 'lastname': 'Smith'});
console.log(user.uuid); // f9684592-b245-42fa-88c6-9f16b9236ac3
Fetch a user based on just username
const user = await userLib.fromUsername('username');
console.log(user.uuid); // f9684592-b245-42fa-88c6-9f16b9236ac3 or user will be false if no user is found
Fetch a user from Uuid
const user = await userLib.fromUuid('f9684592-b245-42fa-88c6-9f16b9236ac3');
console.log(user.uuid); // f9684592-b245-42fa-88c6-9f16b9236ac3
Get field data from a user
const data = await userLib.getFieldData('f9684592-b245-42fa-88c6-9f16b9236ac3', 'firstname');
console.log(data); // ['John'] - Observe this will always be an array with values, since a field can hold several values
Replace user fields for a user

IMPORTANT!!! Will clear all data not given in the fields parameter

await userLib.replaceUserFields('f9684592-b245-42fa-88c6-9f16b9236ac3', {'lastname': ['Smith', 'Johnsson']});
// The field "lastname" will now be replaced with the two values "Smith" and "Johnsson"
// And all other fields will be removed

const data = await userLib.getFieldData('f9684592-b245-42fa-88c6-9f16b9236ac3', 'lastname');
console.log(data); // ['Smith', 'Johnsson']
Remove a field from a user
await userLib.rmUserField('f9684592-b245-42fa-88c6-9f16b9236ac3', 'lastname');
const user = await userLib.fromUuid('f9684592-b245-42fa-88c6-9f16b9236ac3');
console.log(user.fields); // {'firstname': ['John']}
Set password for a user
await userLib.setPassword('f9684592-b245-42fa-88c6-9f16b9236ac3', 'newSuperSecretPwd');

To disable a login, use boolean false as the new password:

await userLib.setPassword('f9684592-b245-42fa-88c6-9f16b9236ac3', false);
Set username for a user
await userLib.setUsername('f9684592-b245-42fa-88c6-9f16b9236ac3', 'theNewUsername');
Get historical field data from user
await userLib.getHistoricFieldDataFromUuid('f9684592-b245-42fa-88c6-9f16b9236ac3', '2003-12-24', '2004-12-24');
Remove historical field data
await userLib.rmHistoricFieldData('2003-12-24');
Errors

All functions in the API will throw an exception upon error.

For instance:

const user1 = await userLib.create('nisse', false);
const user2 = await userLib.create('olle', false);

try {
    await user2.setUsername('nisse'); // Will throw since username "nisse" is already taken
} catch (err) {
    console.error(err);
}

Tests

Run tests with npm test, make sure to have an empty database configured for tests to pass correctly!

The default config file will be application path/config/db_test.json

Or a custom one can be used by running

DBCONFFILE=/path/to/config/db_another.json mocha test/test.js

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 larvituser

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 (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229