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

@opentelemetry/instrumentation-oracledb

Latest version: v0.51.1

Overview

Last scanned
3 Dec 2026
Published
3 Dec 2026
npm package Publisher: dyladan, martinkuba, npmjs-account, overbalance, pichlermarc, trentm
949 Stars
757 Forks
5 Versions
34.2M Downloads
TypeScript Repo language

Scan summary

@opentelemetry/instrumentation-oracledb was last scanned on 3 Dec 2026 at version 0.51.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest was published on 3 Dec 2026.
  • Findings: No rules fired in version 0.51.1.
  • Downloads: 34,214,980 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.51.1 LATEST 3 Dec 2026 No rules fired
0.50.0 5 Nov 2026 No rules fired
0.49.0 20 Oct 2026 No rules fired
0.48.0 6 Oct 2026 Not shown
0.47.0 31 Aug 2026 Not shown

No rules fired in 0.51.1

Findings

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

Known vulnerabilities

1 CVE · last 2 Oct 2026

0 CRITICAL 0 HIGH 1 MEDIUM 0 LOW

Versions

  • ≥ 0.46.0
  • < 0.46.0 1 MEDIUM

Vulnerabilities

  • CVE-2026-104872 Medium 2 Oct 2026 @opentelemetry/instrumentation-cassandra-driver: @opentelemetry/instrumentation-knex: @opentelemetry/instrumentation-mongoose: @opentelemetry/instrumentation-mysql: @opentelemetry/instrumentation-mysql2: @opentelemetry/instrumentation-oracledb: @opentelemetry/instrumentation-pg: @opentelemetry/instrumentation-tedious: opentelemetry-js-contrib: Information disclosure via default database username emission in telemetry data Fixed in 0.46.0

README

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

OpenTelemetry OracleDB Instrumentation for Node.js

NPM Published Version Apache License

This module provides automatic instrumentation for the oracledb module.

If total installation size is not constrained, it is recommended to use the @opentelemetry/auto-instrumentations-node bundle with @opentelemetry/sdk-node for the most seamless instrumentation experience.

Compatible with OpenTelemetry JS API and SDK 1.0+.

Installation

npm install --save @opentelemetry/instrumentation-oracledb

Supported Versions

Note: Metrics are only emitted when using oracledb versions >=7.0.0. Oracle jumped the major version from 7 directly to 26 (aligning with the database release year), so versions 8–25 do not exist.

Usage

OpenTelemetry OracleInstrumentation allows the user to automatically collect trace data and export them to the backend of choice, to give observability to distributed systems when working with oracledb. This module works with both Thin and Thick modes of the oracledb package, although there may be some caveats with Thick Mode now, which are listed in a later paragraph.

To enable a specific instrumentation, pass it to registerInstrumentations(). This is commonly done via NodeSDK for fully setting up all OpenTelemetry SDK components:

const { NodeSDK } = require('@opentelemetry/sdk-node');
const { OracleInstrumentation } = require('@opentelemetry/instrumentation-oracledb');

const sdk = new NodeSDK({
  instrumentations: [
    new OracleInstrumentation(),
  ],
});
sdk.start();
process.once('beforeExit', async () => { await sdk.shutdown(); });

Caveats with oracledb Thick mode:

  • RoundTrip Spans will not appear for Thick Mode
  • Hostname will not be available in Thick Mode

This instrumentation supports both Thin and Thick mode in oracledb.

Span Types Created

This instrumentation creates spans for connection establishment, query execution, and LOB operations.

Span Name Description When Created
oracledb.getConnection Standalone connection acquisition When oracledb.getConnection() is called
oracledb.createPool Pool creation When oracledb.createPool() is called
oracledb.Pool.getConnection Pool connection acquisition When pool.getConnection() is called
oracledb.Connection.execute:<OPERATION> <db.namespace> SQL execution When connection.execute() is called
oracledb.Connection.executeMany:<OPERATION> <db.namespace> Batch SQL execution When connection.executeMany() is called
oracledb.Connection.close Connection close When connection.close() is called
oracledb.Connection.createLob Temporary LOB creation When connection.createLob() is called
oracledb.Lob.getData LOB data read When lob.getData() is called

For Thin mode, additional internal round-trip spans will be emitted, such as:

  • oracledb.FastAuthMessage
  • oracledb.AuthMessage
  • oracledb.ProtocolMessage
  • oracledb.DataTypeMessage
  • oracledb.ExecuteMessage
  • oracledb.LogOffMessage
  • oracledb.LobOpMessage
OracleDB Instrumentation Options
Options Type Default Description
enhancedDatabaseReporting boolean false If true, adds SQL bind values as db.operation.parameter.<key> attributes. When enabled, it also records db.query.text. This can capture sensitive data and should be used with care.
dbStatementDump boolean false If true, records the SQL statement as db.query.text.
requestHook OracleInstrumentationExecutionRequestHook undefined Hook for adding custom span attributes based on the query input and connection metadata.
responseHook OracleInstrumentationExecutionResponseHook undefined Hook for adding custom span attributes based on the database response.
requireParentSpan boolean false If true, only creates spans when there is an active parent span.
propagateTraceContextToSessionAction boolean false If true, injects W3C Trace Context into the Oracle V$SESSION.ACTION field so database-side tracing can be correlated with application spans.
Metrics

Metrics are emitted for oracledb versions >=7.0.0, because the driver metrics APIs used by this instrumentation are available from that version onwards.

Metric Instrument Unit Description
db.client.operation.duration Histogram s Duration of database client operations.
db.client.connection.count UpDownCounter {connection} Number of pool connections currently in the state described by db.client.connection.state.
db.client.connection.pending_requests UpDownCounter {request} Number of requests currently waiting for a pool connection.
db.client.connection.timeouts Counter {timeout} Number of connection requests that timed out while waiting for a pool connection.

The db.client.operation.duration metric includes these attributes when available:

Attribute Description
db.system.name Always oracle.db.
db.namespace Oracle database identifier.
server.address Remote database host.
server.port Remote database port.
db.operation.name Parsed SQL operation name, such as SELECT, PLSQL, BATCH INSERT, or BATCH PLSQL.
error.type Oracle error code when the operation fails.

Pool metrics are updated when the driver reports pool lifecycle events, including pool growth, shrink, acquire, release, wait, request timeout, and close. db.client.connection.count emits one datapoint per pool state using db.client.connection.state with values idle and used. Pool metrics include db.client.connection.pool.name.

Pool names should be unique within the instrumented application. This instrumentation uses poolAlias as db.client.connection.pool.name when it is set. If poolAlias is not set, it falls back to the pool connectString, and then to default. Applications that create multiple pools with the same connection string should set distinct poolAlias values so those pools are reported separately.

OracleDB-specific Notes

  • Thin mode emits internal round-trip spans. Thick mode does not.
  • Thick mode does not expose the same low-level network metadata, so attributes such as server.address, server.port, and network.transport are missing.
  • Oracle connection metadata such as oracle.db.name, oracle.db.instance.name, oracle.db.pdb, oracle.db.domain, and the final effective oracle.db.service are only available after connection metadata has been resolved by the driver.
  • Failed logins may still include the attempted service name, which is useful for debugging connection issues.

Semantic Conventions

This instrumentation now emits the current Oracle database semantic conventions directly.

This includes:

  • db.namespace using Oracle DB_UNIQUE_NAME
  • removal of db.user
  • Oracle-specific attributes such as oracle.db.domain, oracle.db.instance.name, oracle.db.name, oracle.db.pdb, and oracle.db.service when available

This is a breaking semantic change from the older OracleDB instrumentation behavior, where db.namespace used a concatenated <instance>|<pdb>|<service> value and db.user was emitted.

The Oracle-specific oracle.db.* attributes are currently Release Candidate in the semantic conventions.

Attributes collected

Breaking semantic changes:

Previous behavior Current behavior Short Description
db.user Removed Database user name
db.namespace="<instance>\|<pdb>\|<service>" db.namespace="<dbUniqueName>" Oracle database identifier now uses DB_UNIQUE_NAME.

Other emitted attributes:

Attribute Short Description
db.system.name Database product identifier
network.transport Network transport
server.address Remote database host
server.port Remote database port
db.query.text SQL text when dbStatementDump or enhancedDatabaseReporting is enabled
Attribute Short Description
oracle.db.name Database name
oracle.db.instance.name Oracle instance name
oracle.db.pdb Pluggable database name
oracle.db.domain Database domain
oracle.db.service Effective Oracle service name

Useful links

License

Apache 2.0 - See LICENSE for more information.

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 @opentelemetry/instrumentation-oracledb

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229