nivolumab and ipilimumab in treating patients with rare tumors

Conditions: Acinar Cell Carcinoma; Adenoid Cystic Carcinoma; Adrenal Cortical Carcinoma; Adrenal Gland Pheochromocytoma; Anal Canal Neuroendocrine Carcinoma; Anal Canal Undifferentiated Carcinoma; Angiosarcoma; Apocrine Neoplasm; Appendix Mucinous Adenocarcinoma; Bartholin Gland Transitional Cell Carcinoma; Basal Cell Carcinoma; Bladder Adenocarcinoma; Breast Metaplastic Carcinoma; Cervical Adenocarcinoma; Cholangiocarcinoma; Chordoma; Colorectal Squamous Cell Carcinoma; Desmoid Fibromatosis; Endometrial Transitional Cell Carcinoma; Endometrioid Adenocarcinoma; Esophageal Neuroendocrine Carcinoma; Esophageal Undifferentiated Carcinoma; Extrahepatic Bile Duct Carcinoma; Extramammary Paget Disease; Fallopian Tube Adenocarcinoma; Fallopian Tube Transitional Cell Carcinoma; Fibromyxoid Tumor; Gallbladder Carcinoma; Gastric Neuroendocrine Carcinoma; Gastric Squamous Cell Carcinoma; Gastric Undifferentiated Carcinoma; Gastrointestinal Stromal Tumor; Gestational Trophoblastic Tumor; Giant Cell Carcinoma; Human Papillomavirus-Independent Cervical Adenocarcinoma, Clear Cell-Type; Intestinal Neuroendocrine Carcinoma; Intrahepatic Cholangiocarcinoma; Lung Neuroendocrine Tumor; Lung Sarcomatoid Carcinoma; Major Salivary Gland Carcinoma; Malignant Neoplasm of Unknown Primary; Malignant Odontogenic Neoplasm; Malignant Peripheral Nerve Sheath Tumor; Malignant Solid Neoplasm; Malignant Testicular Sex Cord-Stromal Tumor; Metastatic Pituitary Neuroendocrine Tumor; Minimally Invasive Lung Adenocarcinoma; Mixed Mesodermal (Mullerian) Tumor; Mucinous Adenocarcinoma; Mucinous Cystadenocarcinoma; Nasal Cavity Adenocarcinoma; Nasal Cavity Carcinoma; Nasopharyngeal Carcinoma; Nasopharyngeal Low Grade Papillary Adenocarcinoma; Nasopharyngeal Undifferentiated Carcinoma; Oral Cavity Carcinoma; Oropharyngeal Undifferentiated Carcinoma; Ovarian Adenocarcinoma; Ovarian Germ Cell Tumor; Ovarian Mucinous Adenocarcinoma; Ovarian Squamous Cell Carcinoma; Ovarian Transitional Cell Carcinoma; Pancreatic Acinar Cell Carcinoma; Pancreatic Neuroendocrine Carcinoma; Paraganglioma; Paranasal Sinus Adenocarcinoma; Paranasal Sinus Carcinoma; Parathyroid Gland Carcinoma; PEComa; Penile Squamous Cell Carcinoma; Peritoneal Mesothelial Neoplasm; Placental Choriocarcinoma; Primary Peritoneal High Grade Serous Adenocarcinoma; Pseudomyxoma Peritonei; Rare Disorder; Scrotal Squamous Cell Carcinoma; Seminal Vesicle Adenocarcinoma; Seminoma; Serous Cystadenocarcinoma; Small Intestinal Adenocarcinoma; Small Intestinal Squamous Cell Carcinoma; Spindle Cell Neoplasm; Teratoma With Somatic-Type Malignancy; Testicular Non-Seminomatous Germ Cell Tumor; Thyroid Gland Carcinoma; Tracheal Carcinoma; Transitional Cell Carcinoma; Ureter Adenocarcinoma; Ureter Squamous Cell Carcinoma; Urethral Adenocarcinoma; Urethral Squamous Cell Carcinoma; Vaginal Adenocarcinoma; Vaginal Squamous Cell Carcinoma, Not Otherwise Specified; Vulvar Carcinoma

Summary: this phase ii trial studies nivolumab and ipilimumab in treating patients with rare tumors. immunotherapy with monoclonal antibodies, such as nivolumab and ipilimumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. this trial enrolls participants for the following cohorts based on condition: 1. epithelial tumors of nasal cavity, sinuses, nasopharynx: a) squamous cell carcinoma with variants of nasal cavity, sinuses, and nasopharynx and trachea (excluding laryngeal, nasopharyngeal cancer \[npc\], and squamous cell carcinoma of the head and neck \[scchn\]) b) adenocarcinoma and variants of nasal cavity, sinuses, and nasopharynx (closed to accrual 07/27/2018) 2. epithelial tumors of major salivary glands (closed to accrual 03/20/2018) 3. salivary gland type tumors of head and neck, lip, esophagus, stomach, trachea and lung, breast and other location (closed to accrual) 4. undifferentiated carcinoma of gastrointestinal (gi) tract 5. adenocarcinoma with variants of small intestine (closed to accrual 05/10/2018) 6. squamous cell carcinoma with variants of gi tract (stomach small intestine, colon, rectum, pancreas) (closed to accrual 10/17/2018) 7. fibromixoma and low grade mucinous adenocarcinoma (pseudomixoma peritonei) of the appendix and ovary (closed to accrual 03/20/2018) 8. rare pancreatic tumors including acinar cell carcinoma, mucinous cystadenocarcinoma or serous cystadenocarcinoma. pancreatic adenocarcinoma is not eligible (closed to accrual) 9. intrahepatic cholangiocarcinoma (closed to accrual 03/20/2018) 10. extrahepatic cholangiocarcinoma and bile duct tumors (closed to accrual 03/20/2018) 11. sarcomatoid carcinoma of lung 12. bronchoalveolar carcinoma lung. this condition is now also referred to as adenocarcinoma in situ, minimally invasive adenocarcinoma, lepidic predominant adenocarcinoma, or invasive mucinous adenocarcinoma 13. non-epithelial tumors of the ovary: a) germ cell tumor of ovary b) mullerian mixed tumor and adenosarcoma (closed to accrual 03/30/2018) 14. trophoblastic tumor: a) choriocarcinoma (closed to accrual) 15. transitional cell carcinoma other than that of the renal, pelvis, ureter, or bladder (closed to accrual) 16. cell tumor of the testes and extragonadal germ tumors: a) seminoma and testicular sex cord cancer b) non seminomatous tumor c) teratoma with malignant transformation (closed to accrual) 17. epithelial tumors of penis - squamous adenocarcinoma cell carcinoma with variants of penis (closed to accrual) 18. squamous cell carcinoma variants of the genitourinary (gu) system 19. spindle cell carcinoma of kidney, pelvis, ureter 20. adenocarcinoma with variants of gu system (excluding prostate cancer) (closed to accrual 07/27/2018) 21. odontogenic malignant tumors 22. pancreatic neuroendocrine tumor (pnet) (formerly named: endocrine carcinoma of pancreas and digestive tract.) (closed to accrual) 23. neuroendocrine carcinoma including carcinoid of the lung (closed to accrual 12/19/2017) 24. pheochromocytoma, malignant (closed to accrual) 25. paraganglioma (closed to accrual 11/29/2018) 26. carcinomas of pituitary gland, thyroid gland parathyroid gland and adrenal cortex (closed to accrual) 27. desmoid tumors 28. peripheral nerve sheath tumors and nf1-related tumors (closed to accrual 09/19/2018) 29. malignant giant cell tumors 30. chordoma (closed to accrual 11/29/2018) 31. adrenal cortical tumors (closed to accrual 06/27/2018) 32. tumor of unknown primary (cancer of unknown primary; cup) (closed to accrual 12/22/2017) 33. not otherwise categorized (noc) rare tumors \[to obtain permission to enroll in the noc cohort, contact: s1609sc@swog.org\] (closed to accrual 03/15/2019) 34. adenoid cystic carcinoma (closed to accrual 02/06/2018) 35. vulvar cancer (closed to accrual) 36. metaplastic carcinoma (of the breast) (closed to accrual) 37. gastrointestinal stromal tumor (gist) (closed to accrual 09/26/2018) 38. perivascular epithelioid cell tumor (pecoma) 39. apocrine tumors/extramammary paget's disease (closed to accrual) 40. peritoneal mesothelioma 41. basal cell carcinoma (temporarily closed to accrual 04/29/2020) 42. clear cell cervical cancer 43. esthenioneuroblastoma (closed to accrual) 44. endometrial carcinosarcoma (malignant mixed mullerian tumors) (closed to accrual) 45. clear cell endometrial cancer 46. clear cell ovarian cancer (closed to accrual) 47. gestational trophoblastic disease (gtd) 48. gallbladder cancer 49. small cell carcinoma of the ovary, hypercalcemic type 50. pd-l1 amplified tumors 51. angiosarcoma 52. high-grade neuroendocrine carcinoma (pancreatic neuroendocrine tumor \[pnet\] should be enrolled in cohort 22; prostatic neuroendocrine carcinomas should be enrolled into cohort 53). small cell lung cancer is not eligible (closed to accrual) 53. treatment-emergent small-cell neuroendocrine prostate cancer (t-scnc)

primary objectives: i. to evaluate the response evaluation criteria in solid tumors (recist) version (v)1.1 overall response rate (orr) in subsets of patients with advanced rare cancers treated with ipilimumab plus nivolumab combination immunotherapy. ii. to evaluate the overall response rate (orr) in patients with gestational trophoblastic tumors treated with ipilimumab plus nivolumab combination immunotherapy. iii. to evaluate the recist v1.1 overall response rate (orr) in patients pd-l1 amplified cancers treated with nivolumab immunotherapy. secondary objectives: i. to evaluate toxicities in each cohort. ii. to estimate overall survival (os), progression-free survival (pfs), clinical benefit rate; and to estimate immune related (i)recist orr (iorr), and irecist pfs (ipfs) across cohorts and within each cohort. outline: patients are assigned to 1 of 2 arms. arm i (all cohorts except the pd-l1 amplified cohort): patients receive nivolumab intravenously (iv) over 30 minutes on days 1, 15, and 29 and ipilimumab iv over 60 minutes on day 1. treatment repeats every 42 days for up to 17 cycles (2 years) in the absence of disease progression or unacceptable toxicity. patients who complete 17 cycles (2 years) of therapy, may continue receiving the same treatment with nivolumab and ipilimumab, or receive nivolumab once every 14 or 28 days (2 weeks or 4 weeks) per physician discretion in the absence of disease progression or unacceptable toxicity. patients who stop treatment prior to the completion of 17 cycles of therapy may receive nivolumab once every 14 or 28 days (2 weeks or 4 weeks) in the absence of disease progression or unacceptable toxicity. patients undergo echocardiography (echo) during screening and on study. patients also undergo magnetic resonance imaging (mri) or computed tomography (ct) throughout the trial. additionally, patients undergo blood sample collection throughout the trial. arm ii (pd-l1 amplified cohort): patients receive nivolumab iv over 30 minutes on days 1, 15 and 29. treatment repeats every 42 days for up to 17 cycles (2 years) in the absence of disease progression or unacceptable toxicity. after 17 cycles (2 years) of therapy, patients may receive nivolumab once every 14 or 28 days (2 weeks or 4 weeks) in the absence of disease progression or unacceptable toxicity. patients undergo echo during screening and on study. patients also undergo mri or ct throughout the trial. additionally, patients undergo blood sample collection throughout the trial. after completion of study treatment, patients are followed up for 10 years from registration.

Eligibility criteria:
inclusion criteria: * patients are eligible under one of the following criteria: * for all cohorts except the gestational trophoblastic disease (gtd) (cohort #47), patients must have histologically and/or biochemically confirmed rare cancer and must be able to submit specimens; to be eligible for the gtd cohort: patients must have disease confirmed by quantitative serum beta-human chorionic gonadotropin (hcg) within 28 days prior to registration and must be able to submit blood specimens (tissue submission is not required for patients who will be registered to the gtd cohort \[cohort #47\]); note: subsequent to site's institutional review board (irb) approval of revision 3, patients are not required to participate in eay131 "national cancer institute (nci)-molecular analysis for therapy choice (match)" to register to s1609 or * for patients with pd-l1 amplification (cohort #50) only: all solid tumors (excluding lymphoma) are allowed for the pd-l1 amplified cohort if they have pd-l1 amplification; patients may be considered for registration to the pd-l1 amplified cohort (cohort #50) with the confirmation of at least one of the study chairs; pd-l1 amplification is defined as having deoxyribonucleic acid (dna) copy number of equal to or greater than six by any of the following clinical laboratory improvement act (clia)-approved lab; (immunohisochemistry \[ihc\] and fluorescence in situ hybridization \[fish\] are not allowed); the assay must be done at or after the diagnosis of advanced disease, but prior to registration; note: patients with pd-l1 overexpression by ihc or pd-l1 amplification by fish do not quality for this cohort; or * for patients enrolled in eay131 "nci-match" prior to eay131 addendum 10 only: patients must have histologically confirmed rare cancer that did not have a match to a molecularly-guided therapy on eay131 "nci-match" protocol or who are off protocol treatment on eay131, "nci-match" and have no further molecularly-matched treatment recommendations per eay131, "nci-match" or who are otherwise unable to receive eay131, "nci-match" therapy * patients who do not qualify for one of the histologic cohorts and are not on the ineligible histology list may be considered for registration in the "not otherwise categorized" rare tumors cohort with confirmation of at least one of the study chairs via email * note: the "not otherwise categorized" rare tumors cohort was permanently closed to accrual on 3/15/2019 * patients who are determined to have a rare cancer with unknown primary site are eligible under cohort #32 (tumor of unknown primary \[cancer of unknown primary; cup\]), provided that there is histologic documentation of metastatic malignancy with no discernible primary site identified from histopathologic review, physical exam and associated cross-sectional imaging of the chest, abdomen, and pelvis * note: the "tumor of unknown primary (cancer of unknown primary; cup" cohort was permanently closed to accrual on 12/22/2017 * patients must also meet one of the following: * patients must have progressed following at least one line of standard systemic therapy and there must not be other approved/standard therapy available that has been shown to prolong overall survival (i.e. in a randomized trial against another standard treatment or by comparison to historical controls); patients who cannot receive other standard therapy that has been shown to prolonged survival due to medical issues will be eligible, if other eligibility criteria are met; or * patients for whose disease no standard treatment exists that has been shown to prolong overall survival * for all cohorts except the gtd cohort (cohort #47): patients must have a diagnostic quality computed tomography (ct) scan or magnetic resonance imaging (mri), performed within 28 days prior to registration, which demonstrates measurable disease, as defined in recist v. 1.1; scans must include imaging of the chest, abdomen and pelvis, with the exception of patients with head/neck cancer, who must have imaging of the chest, abdomen, pelvis and neck; if there is clinical suspicion for bone metastases at the time of enrollment (in the judgement of the treating investigator) bone scan should be performed; bone scans done within 42 days prior to registration may be used to establish baseline condition at registration * no other prior malignancy is allowed except for the following: * adequately managed stage i or ii cancer from which the patient is currently in complete remission * any other cancer from which the patient has been disease free for one year * adequately managed stage i or ii follicular thyroid or prostate cancer is also eligible, wherein patient is not required to be in complete remission * note: second primary tumors are not allowed concurrent with any of the eligible rare cancers * for all cohorts except the pd-l1 amplified tumors cohort (cohort # 50): patients may have received either prior anti-ctla4 or other prior anti-pd-1/anti-pd-l1 therapy, but not both, provided that it is completed \>= 4 weeks prior to registration. to be eligible for the pd-l1 amplified tumors cohort (cohort #50): patients must not have received anti-pd-1/anti-pd-l1 therapy; prior anti-ctla-4 is allowed provided that it is completed \>= 4 weeks prior to registration * patients who had prior grade 3 or higher immune-related adverse event (e.g. pneumonitis, hepatitis, colitis, endocrinopathy) with prior immunotherapy (e.g. cancer vaccine, cytokine, etc.) are not eligible * patients with clinically controlled thyroiditis or pituitary disorders on stable replacement therapy are eligible * patients are not eligible if they have had or are planned for solid organ transplant * patients with autoimmune disease who are otherwise eligible must not have received steroid and immunosuppressive therapy within 28 days prior to registration * patients with brain metastases or primary brain tumors must have completed treatment, surgery or radiation therapy \>= 28 days prior to registration and have stable disease at time of registration; these patients must also have a ct or mri of the brain to evaluate for cns disease within 42 days prior to registration to s1609; metastatic brain parenchymal disease must have been treated and patient must be off steroids for 7 days prior to registration * patients must not currently be receiving any other investigational agents or any other systemic anti-cancer therapy (including radiation, excluding rankl inhibitors and bisphosphonates); in event patient recently received any other systemic anti-cancer therapy, patient must be off therapy at least 7 days prior to registration and any therapy-induced toxicity must have recovered to =\< grade 1, except alopecia and =\< grade 2 neuropathy which are allowed; any planned radiation therapy must be completed before registration to s1609 * patients must not have prior history of allergy or known hypersensitivity to nivolumab or ipilimumab * hormonal or endocrine blockade is permitted as long as patient has demonstrated progression on prior therapy (e.g. gonadotrophin releasing hormone \[gnrh\], somatostatin); long-acting somatostatin analogs (including octreotide) and androgen deprivation treatment (including long-acting leuprolide) are permitted while on protocol therapy * patients must be \>= 18 years of age * patients must have a zubrod performance status of 0-2 * absolute neutrophil count (anc) \>= 1,000/mcl (within 28 days prior to registration) * platelets \>= 75,000/mcl (within 28 days prior to registration) * hemoglobin \>= 8 g/dl (within 28 days prior to registration) * total bilirubin =\< 2.0 x institutional upper limit of normal (iuln) or for documented/suspected gilbert's disease, total bilirubin =\< 3.0 x iuln (within 28 days prior to registration) * aspartate aminotransferase (ast) and alanine aminotransferase (alt) both =\< 3 x iuln (within 28 days prior to registration) * serum creatinine =\< 2.0 x iuln (within 28 days prior to registration) * creatinine clearance (crcl) \>= 50 ml/min., as estimated by the cockcroft and gault formula; estimated creatinine clearance is based on actual body weight (within 28 days prior to registration) * patients must have adequate thyroid function, as evidenced by either thyroid-stimulating hormone (tsh) or, free thyroxine (t4) serum tests demonstrating values within the normal range, within 28 days prior to registration; at pre-registration, if tsh is not within normal limits, then free t4 must be performed and must be within normal range for patient to be eligible; note: tsh, with reflex t4 (if tsh is abnormal) is allowable if per institutional standard, provided that free t4 is within normal range; patients who have undergone thyroidectomy or who are on thyroid suppression for their cancer are not required to have normal tsh and free t4 * patients must have adequate adrenal axis function, as evidenced by cortisol levels within institutional normal ranges (ante meridiem \[am\] cortisol preferred), or adrenocorticotropic hormone (acth) values within the institutional normal ranges within 28 days prior to registration; if cortisol levels are not within normal limits prior to registration, then acth must be performed and must be within normal ranges for patient to be eligible; note: neither cortisol nor acth levels are required for patients with primary adrenal tumors (e.g. adrenocortical carcinoma) * for women of childbearing potential, the local investigator must rule out pregnancy; except for cohorts 13 and 47, where tumor types may express beta-hcg, women of childbearing potential must have a serum or urine pregnancy test within 7 days prior to registration; for cohorts 13 and 47, where tumor types may produce hcg (e.g. germ cell tumors or trophoblastic disease), other pregnancy exclusion methods should be used to rule out pregnancy, such as ultrasound examination, documented history of effective contraception, or documented infertility; all females of childbearing potential must have been demonstrated not to be pregnant within 7 days prior to registration and agree to use birth control throughout study and for 23 weeks after completion of protocol therapy; patients must not be pregnant or nursing due to risk of fetal or nursing infant harm; women of childbearing potential must have agreed to use an effective contraceptive method; a woman is considered to be of "childbearing potential" if she has had menses at any time in the preceding 12 consecutive months; in addition to routine contraceptive methods, "effective contraception" also includes heterosexual celibacy and surgery intended to prevent pregnancy (or with a side-effect of pregnancy prevention) defined as a hysterectomy, bilateral oophorectomy or bilateral tubal ligation; however, if at any point a previously celibate patient chooses to become heterosexually active during the time period for use of contraceptive measures outlined in the protocol, she is responsible for beginning contraceptive measures * men of reproductive potential must have agreed to use birth control throughout the study and for 31 weeks after completion of protocol therapy; in addition to routine contraceptive methods, "effective contraception" also includes heterosexual celibacy and surgery intended to prevent pregnancy (vasectomy); however, if at any point a previously celibate patient chooses to become heterosexually active during the time period for use of contraceptive measures outlined in the protocol, he is responsible for beginning contraceptive measures * patients must not have known active hepatitis b virus (hbv) or hepatitis virus (hcv) infection at time of registration; patients with hbv or hcv that have an undetectable viral load and no residual hepatic impairment are eligible * patients who are known to be human immunodeficiency virus (hiv)-positive at registration are eligible at the time of registration: * cd4+ cell count greater or equal to 250 cells/mm\^3 * no history of non-malignancy acquired immunodeficiency syndrome (aids)-defining conditions other than historical low cd4+ cell counts * patients must not have active autoimmune disease that has required systemic treatment in past 2 years (i.e., with use of disease modifying agents, immunosuppressive drugs, or corticosteroids with prednisone dose \>= 10 mg); replacement therapy (e.g., thyroxine, insulin, or physiologic corticosteroid replacement therapy for adrenal or pituitary insufficiency, etc.) is not considered a form of systemic treatment; autoimmune diseases include but are not limited to autoimmune hepatitis, inflammatory bowel disease (including ulcerative colitis and crohn's disease), as well as symptomatic disease (e.g.: rheumatoid arthritis, systemic progressive sclerosis \[scleroderma\], systemic lupus erythematosus, autoimmune vasculitis \[e.g., wegener's granulomatosis\]); central nervous system (cns) or motor neuropathy considered of autoimmune origin (e.g., guillain-barre syndrome and myasthenia gravis, multiple sclerosis or glomerulonephritis); vitiligo, alopecia, hypothyroidism on stable doses of thyroid replacement therapy, psoriasis not requiring systemic therapy within the past 2 years is permitted; short-term steroid premedication for contrast allergy is permitted * patients must not have any uncontrolled intercurrent illness including (not limited to): symptomatic congestive heart failure (chf) (new york heart association \[nyha\] iii/iv), unstable angina pectoris or coronary angioplasty, or stenting within 24 weeks prior to registration, unstable cardiac arrhythmia (ongoing cardiac dysrhythmias of nci common terminology criteria for adverse events \[ctcae\] version \[v\] 4 grade \>= 2), known psychiatric illness that would limit study compliance, intra-cardiac defibrillators, known cardiac metastases, or abnormal cardiac valve morphology (\>= grade 3) * note: patients with history of chf or patients who are deemed at risk because of underlying cardiovascular disease or exposure to cardiotoxic drugs should have an electrocardiogram (ekg) and echocardiogram (echo), as clinically indicated, at baseline and at the start of each cycle; patients who have evidence at baseline (or subsequently) of chf, myocardial infarction (mi), cardiomyopathy, or myositis cardiac evaluation (nyha i/ii) should have additional consult by a cardiologist, including review of ekg, creatine phosphokinase (cpk), troponin, echocardiogram, as clinically indicated * patients must have amylase or lipase within =\< 1.5 x iuln without symptoms of pancreatitis at registration, within 28 days prior to registration * patients must not have symptomatic interstitial lung disease or pneumonitis * patients must have fully recovered from any adverse effects of major surgery (to =\< grade 1) at least 14 days prior to registration