Vulnerabilities in pkg:pypi/nsupdate

PACKAGE
Advisory Identifier: GHSA-mwvp-qr62-cvjx
Advisory Summary

CVE-2019-25091 is a MODERATE (CVSS 5.3) nsupdate.info has sensitive cookie without vulnerability (CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag) affecting Nsupdate libraries in the PyPI ecosystem. The issue involves nsupdate.info has sensitive cookie without 'httponly' flag. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/nsupdate

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-mwvp-qr62-cvjx CVE-2019-25091 MODERATE nsupdate.info has Sensitive Cookie Without 'HttpOnly' Flag

CVE-2019-25091 at a Glance

CVE Identifier CVE-2019-25091
GHSA Identifier GHSA-mwvp-qr62-cvjx
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag
Affected Product Nsupdate
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-25091

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

nsupdate fixed: Latest secure release
pip install nsupdate>=Latest secure release
Verify Direct and Transitive Dependencies

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

pip show nsupdate

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2019-25091, inspect your installed packages using pip:

pip show nsupdate

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

Note: The pip show nsupdate command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag, where the product uses a cookie to store sensitive information, but the cookie is not marked with the httponly flag. In Nsupdate, 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

A vulnerability classified as problematic has been found in nsupdate.info. This affects an unknown part of the file `src/nsupdate/settings/base.py` of the component `CSRF Cookie Handler`. The manipulation of the argument `CSRF_COOKIE_HTTPONLY` leads to cookie without `httponly` flag. It is possible to initiate the attack remotely. The name of the patch is 60a3fe559c453bc36b0ec3e5dd39c1303640a59a. It is recommended to apply a patch to fix this issue. The identifier VDB-216909 was assigned to this vulnerability.

CVE-2019-25091 Affected Nsupdate Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
nsupdate
PyPI
≤ 0.12.0

References

Frequently Asked Questions

What is CVE-2019-25091?
CVE-2019-25091 is a security vulnerability in Nsupdate involving nsupdate.info has Sensitive Cookie Without 'HttpOnly' Flag under CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag.
Which Nsupdate versions are affected?
Affected versions include releases prior to current release patches across affected packages: nsupdate.
What version fixes CVE-2019-25091?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is nsupdate affected?
Yes, nsupdate is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2019-25091?
CVE-2019-25091 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2019-25091?
CVE-2019-25091 is classified under CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag (The product uses a cookie to store sensitive information, but the cookie is not marked with the HttpOnly flag.).
How can I check PyPI dependencies for CVE-2019-25091?
Run the dependency tree command: 'pip show nsupdate'. 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-mwvp-qr62-cvjx",
  "modified" : "2023-01-09T21:51:01Z",
  "published" : "2022-12-28T00:30:22Z",
  "aliases" : [ "CVE-2019-25091" ],
  "summary" : "nsupdate.info has Sensitive Cookie Without 'HttpOnly' Flag",
  "details" : "A vulnerability classified as problematic has been found in nsupdate.info. This affects an unknown part of the file `src/nsupdate/settings/base.py` of the component `CSRF Cookie Handler`. The manipulation of the argument `CSRF_COOKIE_HTTPONLY` leads to cookie without `httponly` flag. It is possible to initiate the attack remotely. The name of the patch is 60a3fe559c453bc36b0ec3e5dd39c1303640a59a. It is recommended to apply a patch to fix this issue. The identifier VDB-216909 was assigned to this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nsupdate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-25091"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nsupdate-info/nsupdate.info/pull/410"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nsupdate-info/nsupdate.info/commit/60a3fe559c453bc36b0ec3e5dd39c1303640a59a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nsupdate-info/nsupdate.info"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.216909"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.216909"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1004" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-09T21:51:01Z",
    "nvd_published_at" : "2022-12-27T23:15:00Z"
  }
}