Skip to content

Replace nvdtools CPE library #2461

@asadjaffar

Description

@asadjaffar

Hello, i am using a sbom and when i scan it says that CPE is invalid but i believ cpe is not invlaid, can anyone confirm why i am getting this message:

asad@asad-Lenovo-V330-15IKB:~/Downloads/wwe$ grype sbom:u8h8dnoj.cdx.json
 ✔ Vulnerability DB                [updated]  
 ✔ Scanned for vulnerabilities     [0 vulnerability matches]  
   ├── by severity: 0 critical, 0 high, 0 medium, 0 low, 0 negligible
   └── by status:   0 fixed, 0 not-fixed, 0 ignored 
*_*[0000]  WARN invalid CPE: cpe:2.3:a:dicer_project:dicer::*:*:*:*:node.js:*:***_
[0234]  WARN attempted CPE search on OWASP Juice Shop, which has no CPEs. Consider re-running with --add-cpes-if-none
[0234]  WARN attempted CPE search on dicer, which has no CPEs. Consider re-running with --add-cpes-if-none
[0234]  WARN attempted CPE search on multer, which has no CPEs. Consider re-running with --add-cpes-if-none
No vulnerabilities found

the sbom i used was this:

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.6",
  "serialNumber": "urn:uuid:45dd676b-5fbc-4b01-a28b-2ecbbe87d03e",
  "version": 1,
  "metadata": {
      "timestamp": "2024-01-29T12:51:10Z",
      "tools": {
  },
  "authors": [
    {
      "name": "Martin Rosso",
      "email": "martin.rosso@unipd.it"
    }
  ],
  "manufacturer": {
    "name": "Universita degli Studi di Padova, Dipartimento di Matematica",
    "address": {
      "country": "Italy",
      "locality": "Padua"
    },
    "url": ["https://www.math.unipd.it/"]
  },
  "supplier": {
    "name": "OWASP",
    "url": ["https://owasp.org/"]
  },
  "component": {
    "bom-ref": "REF-juiceshop",
    "type": "application",
    "name": "OWASP Juice Shop",
    "version": "14.3.0",
    "author": "OWASP",
    "publisher": "OWASP",
    "supplier": {"name": "OWASP"},
    "copyright": "MIT"
    },
    "licenses": [ {"license": {"id": "CC-BY-4.0"} } ],
    "properties": [
      {
        "name": "comment",
        "value": "Minimal SBOM for research and education"
      }
    ]
  },
  "components": [
    {
      "bom-ref": "REF-multer",
      "type": "library",
      "name": "multer",
      "version": "1.4.2"
    },
    {
        "bom-ref": "REF-dicer",
        "type": "library",
        "name": "dicer",
        "cpe": "cpe:2.3:a:dicer_project:dicer::*:*:*:*:node.js:*:*"
    }
  ],
  "dependencies": [
	  {
      "ref": "REF-juiceshop",
      "dependsOn": ["REF-multer"]
    },
    {
      "ref": "REF-multer",
      "dependsOn": ["REF-dicer"]
    }
  ],
  "vulnerabilities": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions