Vulnerabilities in pkg:gem/activejob

PACKAGE
Advisory Summary

GHSA-mpwp-4h2m-765c is a MODERATE active job - object injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Activejob libraries in the RubyGems ecosystem. The issue involves active job - object injection security vulnerability. Remediation is available by upgrading affected packages to version 4.2.0.beta2.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/activejob

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/activejob. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mpwp-4h2m-765c - MODERATE Active Job - Object injection security vulnerability
GHSA-q2qw-rmrh-vv42 CVE-2018-16476 HIGH Improper Access Control in activejob

GHSA-mpwp-4h2m-765c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mpwp-4h2m-765c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Activejob
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-mpwp-4h2m-765c

To remediate this vulnerability, upgrade all affected Activejob dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

activejob fixed: 4.2.0.beta2
Upgrade activejob to 4.2.0.beta2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for activejob

How to Check if You Are Affected

To determine whether your application is affected by GHSA-mpwp-4h2m-765c, inspect your project dependencies for Activejob:

inspect dependencies for activejob

Analyze the terminal output to locate any version of Activejob in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.0.beta2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Activejob, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Active Job vulnerability: An Active Job bug allowed String arguments to be deserialized as if they were Global IDs, an object injection security vulnerability.

GHSA-mpwp-4h2m-765c Affected Activejob Versions

1 component(s)
Fixed Versions:
4.2.0.beta2
Product / Package Ecosystem Affected Versions Fixed Version
activejob
RubyGems
< 4.2.0.beta2
4.2.0.beta2

References

Frequently Asked Questions

What is GHSA-mpwp-4h2m-765c?
GHSA-mpwp-4h2m-765c is a security vulnerability in Activejob involving Active Job - Object injection security vulnerability under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Activejob versions are affected?
Affected versions include releases prior to 4.2.0.beta2 across affected packages: activejob.
What version fixes GHSA-mpwp-4h2m-765c?
Upgrading to 4.2.0.beta2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is activejob affected?
Yes, activejob is affected in releases prior to 4.2.0.beta2. Upgrade your dependency to 4.2.0.beta2 or later.
What CWE is associated with GHSA-mpwp-4h2m-765c?
GHSA-mpwp-4h2m-765c is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check RubyGems dependencies for GHSA-mpwp-4h2m-765c?
Run the dependency tree command: 'inspect dependencies for activejob'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mpwp-4h2m-765c",
  "modified" : "2026-01-20T21:03:33Z",
  "published" : "2026-01-16T19:21:54Z",
  "aliases" : [ ],
  "summary" : "Active Job - Object injection security vulnerability",
  "details" : "Active Job vulnerability: An Active Job bug allowed String arguments to be deserialized as if they were Global IDs, an object injection security vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activejob"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.0.beta2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://advisories.gitlab.com/pkg/gem/activejob/OSVDB-112347"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activejob/GHSA-mpwp-4h2m-765c.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activejob/OSVDB-112347.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-16T19:21:54Z",
    "nvd_published_at" : null
  }
}